Install the renv R package and set renv cache to a Docker volume. Cache is shared by all containers.
"features": {
"ghcr.io/rocker-org/devcontainer-features/renv-cache:0": {}
}
Options Id | Description | Type | Default Value |
---|
Not particularly.
If R cannot be run or the renv
R package is already installed,
the installation script of this Feature create the cache directory and exit.
In other words, it can be installed in a container that does not use R.
If R is already installed and the renv
R package is not, install the renv
package.
If you want to install a specific version of renv
,
please use the ghcr.io/rocker-org/devcontainer-features/r-packages
Feature.
"features": {
"ghcr.io/rocker-org/devcontainer-features/renv-cache:latest": {},
"ghcr.io/rocker-org/devcontainer-features/r-packages:1": {
"packages": "github::rstudio/renv"
}
}
The cache directory in the container is set to /renv/cache
.
This directory is stored in a volume named devcontainer-renv-cache
and is shared among multiple containers.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md
.