The above is with env var R_DEFAULT_PACKAGES not set/being empty.
Idea
When R_DEFAULT_PACKAGES is not set, the startup package could have an option to detect when Rscript is running and set the default to be the same as for R.
Add support for using R_DEFAULT_PACKAGES=+methods in ~/.Renviron.d/*?
Issue
Except for experienced R users, the following is often a surprising finding:
The above is with env var
R_DEFAULT_PACKAGES
not set/being empty.Idea
R_DEFAULT_PACKAGES
is not set, the startup package could have an option to detect whenRscript
is running and set the default to be the same as forR
.R_DEFAULT_PACKAGES=+methods
in~/.Renviron.d/*
?Is any of this a good idea?