Just saw this:
$ Rscript -e "sessionInfo()['basePkgs']"
$basePkgs
[1] "stats" "graphics" "grDevices" "utils" "datasets" "base"
$ R --vanilla --slave -e "sessionInfo()['basePkgs']"
$basePkgs
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[7] "base"
The methods
package seems to be always available when running R
, but not with Rscript
. I suspect that this is to gain performance, but are there any practical implications besides the obvious? I'm asking because of a funny bug that is triggered by the presence or absence of the methods
package.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…