packrat-options {packrat}R Documentation

Get/set packrat project options

Description

Get and set options for the current packrat-managed project.

Usage

get_opts(options = NULL, simplify = TRUE, project = NULL,
  split.fields = TRUE)

set_opts(..., project = NULL)

Arguments

options

A character vector of valid option names.

simplify

Boolean; unlist the returned options? Useful for when retrieving a single option.

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 key = value, used for setting packrat project options.

Details

Examples

## 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)

[Package packrat version 0.3.0.101 Index]