[Rd] Why does NextMethod() pick up duplicate arguments in '...' if given positionally at top level?

2025-03-24 Thread Michael Chirico
Consider: foo <- function(x, y, ...) { UseMethod("foo") } foo.default <- function(x, y = 0, ...) { cat(sprintf("%s: x=%s, y=%s\n", as.character(match.call()[[1L]]), x, y)) if (...length()) str(list(...)) } foo.C <- function(x, y = 3, ...) { cat(sprintf("%s: x=%s, y=%s\n", as.char

Re: [Rd] request for discussion on lonely doc patch suggestion

2025-03-24 Thread Tim Taylor
FWIW, on the command line I’m a happy 'delta' user for a quick side by side comparison (https://github.com/dandavison/delta) > On 24 Mar 2025, at 19:32, J C Nash wrote: > > For Linux users, meld is quite nice for side by side editing, though I've > never tried using it for > display. Just ch

Re: [Rd] request for discussion on lonely doc patch suggestion

2025-03-24 Thread Duncan Murdoch
I sent some comments directly to Ben. I just want to reply publicly to this part: On 2025-03-24 1:18 p.m., Ben Bolker wrote: The patch file is attached (also available at bugzilla, if it doesn't get through to the list). I find the patch format a little hard to read, so I'm reproducing ju

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

2025-03-24 Thread Sebastian Meyer
Am 21.03.25 um 15:42 schrieb Aidan Lakshman via R-devel: After investigating the source of table, I ended up on the reason being “as.character()”: This is specifically happening within the conversion of the input to type factor, which is where the as.character conversion happens. Yes, I als