Re: [Rd] Bug with `[<-.POSIXlt` on specific OSes

2022-10-30 Thread Suharto Anggono Suharto Anggono via R-devel
I just pointed out that, in  https://stat.ethz.ch/pipermail/r-devel/2022-October/082082.html ("A potential  POSIXlt->Date bug introduced in r-devel"), dlt <- .POSIXlt(list(sec = c(-999, 1 + c(1:10,-Inf, NA)) + pi, # "out of range", non-finite, fractions  

Re: [Rd] Lazy-evaluate elements wrapped with invisible

2022-10-30 Thread Simon Urbanek
Dipterix, I think delayedAssign() example you posted does what you want - if you don't assign the environment, it will be garbage-collected. If you fetch the value, it will be evaluated. However, I think what you meant is to have the result in one specific delayed symbol so: a <- function() {