Skip to content

sandbox

Introduced in rv v0.23.0

Set sandbox = true to run the project using a sandbox to ensure truly reproducible projects if you are in an environment where there might be packages installed directly in the R library.

Defaults to false. If the field is not set, rv will also look for RV_USE_SANDBOX environment variable.

rproject.toml
sandbox = true
[project]
name = "sandboxed"
r_version = "4.5"
repositories = [
{ alias = "PPM", url = "https://packagemanager.posit.co/cran/latest" },
]
dependencies = [
"dplyr",
]

An interactive session picks the change up on its next start, since the activate script sets the library up at startup. rv run and rv sync pick it up immediately.

You can choose to enable or disable it at any time, rv will adjust automatically.