Re: [Rd] Better support ESS by allowing choice of CRAN mirror using the `menu-choice` widget

2025-04-10 Thread Bryce Carson
I know ESS already has a better interface for installing packages, C-c C-e TAB, but it'd be "neat" if when I forget to do this and I call install.packages() without first setting a mirror that either the same interface would be presented rather than Tcl/Tk, or a widget.el-based interface was presen

Re: [Rd] table() and as.character() performance for logical values

2025-04-10 Thread Sebastian Meyer
Right, thanks! These are non-standard uses of factor(), edge cases I alluded to. We didn't see any problems with the patch in existing tests nor in CRAN/BIOC package checks. Note that 'levels' is documented as an optional vector of the unique values (as character strings) that ‘x’ might

Re: [Rd] table() and as.character() performance for logical values

2025-04-10 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Thu, 10 Apr 2025 07:53:04 + (UTC) writes: > Chain of calls of C functions in coerce.c for as.character() in R: > do_asatomic > ascommon > coerceVector > coerceToString > StringFromLogical (for each elemen

Re: [Rd] table() and as.character() performance for logical values

2025-04-10 Thread Suharto Anggono Suharto Anggono via R-devel
Chain of calls of C functions in coerce.c for as.character() in R: do_asatomic ascommon coerceVector coerceToString StringFromLogical (for each element) The definition of 'StringFromLogical' in coerce.c : attribute_hidden SEXP StringFromLogical(int x, int *warn) { int w; formatLogical(&x,