HenrikBengtsson / startup

:wrench: R package: startup - Friendly R Startup Configuration
https://henrikbengtsson.github.io/startup/
163 stars 5 forks source link

startup(debug=TRUE): Report on R_SCRIPT_DEFAULT_PACKAGES #98

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 3 years ago

R_SCRIPT_DEFAULT_PACKAGES takes precedence over R_DEFAULT_PACKAGES, but is only used if Rscript is used and CLI option --default-packages=... was not specified).

In order for startup(debug=TRUE) to report on this, it needs to know if Rscript was used to launch R or not, cf. Issue #97.

HenrikBengtsson commented 2 years ago

FWIW, there's also R_SCRIPT_LEGACY=true, which can be set to obtain the old R (<= 3.5.1) behavior.