Default variable details
Some of debops.cran
default variables have more extensive configuration
than simple strings or lists, here you can find documentation and examples for
them.
cran__r_packages
The cran__*_r_packages
variables define what R packages will be installed
by Ansible system-wide, in the /usr/local/lib/R/site-library/
directory. Each variable contains a list of entries, an entry can be a simple
string with the package name, which will be installed if available.
Alternatively an entry can be a YAML dictionary with specific parameters:
name
Required. Name of the R package to install or remove.
state
Optional. If not specified or
present
, the specific R package will be installed. Ifabsent
, the specific R package will be removed.repo
Optional. URL of the repository with the R packages to use. If not specified, the value of the
cran__upstream_mirror
variable will be used by default.
Examples
Install selected R packages system-wide:
cran__r_packages:
- 'Rcpp'
- 'ggplot2'
- name: 'plyr'
state: 'present'