HenrikBengtsson / startup

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

Add `build=<logical>` and `check=<logical>` #17

Open HenrikBengtsson opened 7 years ago

HenrikBengtsson commented 7 years ago

Add build=<logical> and check=<logical> for startup scripts specific to R CMD build and R CMD check.

Related:

From help("Startup"):

R CMD check and R CMD build do not always read the standard startup files, but they do always read specific Renviron files. The location of these can be controlled by the environment variables R_CHECK_ENVIRON and R_BUILD_ENVIRON. If these are set their value is used as the path for the Renviron file; otherwise, files ‘\~/.R/check.Renviron’ or ‘\~/.R/build.Renviron’ or sub-architecture-specific versions are employed.

If you want ‘\~/.Renviron’ or ‘\~/.Rprofile’ to be ignored by child R processes (such as those run by R CMD check and R CMD build), set the appropriate environment variable R_ENVIRON_USER or R_PROFILE_USER to (if possible, which it is not on Windows) "" or to the name of a non-existent file.

HenrikBengtsson commented 6 years ago

Related to #46