Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.75 KB

README.md

File metadata and controls

63 lines (39 loc) · 1.75 KB

renv cache (renv-cache)

Install the renv R package and set renv cache to a Docker volume. Cache is shared by all containers.

Example Usage

"features": {
    "ghcr.io/rocker-org/devcontainer-features/renv-cache:0": {}
}

Options

Options Id Description Type Default Value

System Requirements

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"
    }
}

Cache directory and cache volume

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.

See also

References


Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.