Skip to content

Project Options

rv provides configurations for the project as well, including the ability to tune the lock file and a custom library location. These are used outside of the [project] header.

  • library - Specify a custom library location, optionally templated by R version or project name
  • use_lockfile - Whether to use a lockfile or not
  • lockfile_name - The name of the lockfile corresponding to the config file
rproject.toml
library = "/opt/rpkgs/{r_version}/{name}"
use_lockfile = false
lockfile_name = "custom.lock"
[project]
name = "project options"
r_version = "4.5"
repositories = [
{ alias = "PPM", url = "https://packagemanager.posit.co/cran/latest" },
]
dependencies = [
"dplyr",
]