[Rd] Possible inconsistency between `as.complex(NA_real_)` and the docs

2023-04-14 Thread Davis Vaughan via R-devel
Hi all, Surprisingly (at least to me), `as.complex(NA_real_)` results in `complex(real = NA_real_, imaginary = 0)` rather than `NA_complex_`. It seems to me that this goes against the docs of `as.complex()`, which say this in the Details section: "Up to R versions 3.2.x, all forms of NA and NaN

[Rd] sum(), min(), max(), prod() vs. named arguments in ...

2023-04-14 Thread Ivan Krylov
Hello R-devel, As mentioned on Fosstodon [1] and discussed during RCOH [2], named arguments to sum(), min(), max() and prod() are currently processed the same way as the un-named ones. Additionally, when specifying the na.rm argument more than once, the last specified value is silently taken int