On Jun 24, 2024, at 23:48, Kasper Daniel Hansen <kasperdanielhansen at gmail.com> wrote:
Bill,
There are multiple ways to do this. I assume you're familiar with building
and checking your R package in the Terminal, which is done by
$ R CMD build packageName
$ R CMD check packageName_VERSION.tar.gz
(where VERSION is the version number) and $ is the command prompt.
You can set the environment variable by
1) setting it permanently in the Terminal window by executing
$ export _R_CHECK_DEPENDS_ONLY_=true
$ R CMD build packageName
$ R CMD check packageName_VERSION.tar.gz
2) setting it for one specific invocation
$ R CMD build packageName
$ _R_CHECK_DEPENDS_ONLY_=true R CMD check packageName_VERSION.tar.gz
3) setting it in .Renviron (see manual)
$ R CMD check
[[alternative HTML version deleted]]