Re: [Rd] logic tweak needed for as.data.frame. deprecation warning

2023-07-07 Thread Martin Maechler
> Mikael Jagan > on Thu, 6 Jul 2023 11:32:00 -0400 writes: > Continuing the thread started on R-package-devel, here: > https://stat.ethz.ch/pipermail/r-package-devel/2023q3/009307.html > The logic of the now soft-deprecated as.data.frame., >> body(as.data.frame.integ

Re: [Rd] logic tweak needed for as.data.frame. deprecation warning

2023-07-06 Thread Mikael Jagan
Another issue raised in the earlier thread is that as.data.frame.POSIXlt still calls as.data.frame.POSIXct. Hence another path to a false positive deprecation warning would be: > Sys.setenv("_R_CHECK_AS_DATA_FRAME_EXPLICIT_METHOD_" = TRUE) > as.data.frame(as.POSIXlt(.POSIXct(0, "UTC"))) as.POS

[Rd] logic tweak needed for as.data.frame. deprecation warning

2023-07-06 Thread Mikael Jagan
Continuing the thread started on R-package-devel, here: https://stat.ethz.ch/pipermail/r-package-devel/2023q3/009307.html The logic of the now soft-deprecated as.data.frame., > body(as.data.frame.integer)[[2L]] if ((sys.nframe() <= 1L || sys.call(-1L)[[1L]] != quote(as.data.frame)) && nzchar