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.
Add
build=<logical>
andcheck=<logical>
for startup scripts specific toR CMD build
andR CMD check
.Related:
From
help("Startup")
: