[Rd] infelicity in `na.print = ""` for numeric columns of data frames/formatting numeric values

2023-06-03 Thread Ben Bolker
format(c(1:2, NA)) gives the last value as "NA" rather than preserving it as NA, even if na.encode = FALSE (which does the 'expected' thing for character vectors, but not numeric vectors). This was already brought up in 2008 in https://bugs.r-project.org/show_bug.cgi?id=12318 where Gregor

[Rd] codetools wrongly complains about lazy evaluation in S4 methods

2023-06-03 Thread Mikael Jagan
In a package, I define a method for not-yet-generic function 'qr.X' like so: > setOldClass("qr") > setMethod("qr.X", signature(qr = "qr"), function(qr, complete, ncol) NULL) The formals of the newly generic 'qr.X' are inherited from the non-generic function in the base namespace. Notabl

Re: [Rd] why does [A-Z] include 'T' in an Estonian locale?

2023-06-03 Thread Ben Bolker
Thanks, I do know about the docs you quoted. Thanks for pointing me to the comment in the code. I've posted an issue (a request to make the documentation match the code) at the TRE repository: https://github.com/laurikari/tre/issues/88 On 2023-06-01 5:53 a.m., Tomas Kalibera wrote: On