HenrikBengtsson / startup

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

Add support for R_STARTUP_FILE=script.R #119

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

Add support for

$ echo "message('hello')" > setup.R
$ R_STARTUP_FILE="setup.R" R --quiet
hello
> 

as a convenient alternative to:

$ echo "message('hello')" > setup.R
$ R_STARTUP_INIT="source('setup.R')" R --quiet
hello
>