pak configuration | R Documentation |
pak behavior can be finetuned with environment variables and
options (as in base::options()
).
Ncpus
Set to the desired number of worker processes for package installation. If not set, then pak will use the number of logical processors in the machine.
repos
The CRAN-like repositories to use. See base::options()
for details.
Configuration entries (unless noted otherwise on this manual page) have a corresponding environment variable, and a corresponding option.
The environment variable is always uppercase and uses underscores as the
word separator. It always has the PKG_
prefix.
The option is typically lowercase, use it uses underscores as the word
separator, but it always has the pkg.
prefix (notice the dot!).
Some examples:
Config entry name | Env var name | Option name |
platforms | PKG_PLATFORMS | pkg.platforms |
cran_mirror | PKG_CRAN_MIRROR | pkg.cran_mirror |
doc_config()
From version 0.4.0 pak copies the PKG_*
environment variables and
the pkg.*
options to the pak subprocess, where they are actually
used, so you don't need to restart R or reaload pak after a
configuration change.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.