packrat-options {packrat} | R Documentation |
Get and set options for the current packrat-managed project.
get_opts(options = NULL, simplify = TRUE, project = NULL, split.fields = TRUE) set_opts(..., project = NULL)
options |
A character vector of valid option names. |
simplify |
Boolean; |
project |
The project directory. When in packrat mode, defaults to the current project; otherwise, defaults to the current working directory. |
split.fields |
Split comma-delimited fields? |
... |
Entries of the form |
auto.snapshot
: Perform automatic, asynchronous snapshots when running interactively?
(TRUE
/ FALSE
; defaults to TRUE
)
use.cache
:
Install packages into a global cache, which is then shared across projects? The
directory to use is read through Sys.getenv("R_PACKRAT_CACHE_DIR")
.
(EXPERIMENTAL; defaults to FALSE
)
print.banner.on.startup
:
Print the banner on startup? Can be one of TRUE
(always print),
FALSE
(never print), and 'auto'
(do the right thing)
(defaults to "auto"
)
vcs.ignore.lib
:
Add the packrat private library to your version control system ignore?
(TRUE
/ FALSE
; defaults to TRUE
)
vcs.ignore.src
:
Add the packrat private sources to your version control system ignore?
(TRUE
/ FALSE
; defaults to FALSE
)
external.packages
:
Packages which should be loaded from the user library upon entering packrat mode.
This can be useful for very large packages which you don't want duplicated across
multiple projects, e.g. Bioconductor annotation packages.
(EXPERIMENTAL; defaults to Sys.getenv("R_PACKRAT_EXTERNAL_PACKAGES")
)
local.repos
:
Local 'repositories'; i.e., directories containing package sources either as
folders or as package tarballs. (Character vector; empty by default)
## Not run: ## use 'devtools' and 'knitr' from the user library packrat::set_opts(external.packages = c("devtools", "knitr")) ## set local repository packrat::set_opts(local.repos = c("~/projects/R")) ## End(Not run)