Displaying 1 result from an estimated 1 matches for "r57720".
Did you mean:
57720
2011 Nov 24
1
capture.output(eval(..., envir)) not evaluate in the expected(?) environment
...environment(envir)) # Workaround
capture.output({
eval(substitute({x <- 1}), envir=envir)
})
} # foo()
which gives:
> suppressWarnings(rm(x)); foo(); str(x);
character(0)
num 1
This occurs with R v2.14.0 patched and R devel:
> sessionInfo()
R version 2.14.0 Patched (2011-11-20 r57720)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils...