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
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() {