Skip to content

rv add

Used to quickly add packages as simple dependencies to the config file, then sync.

Using this command may feel similar to install.packages() in which packages can be iteratively added to the project, just with the additional benefits provided by rv.

Terminal window
rv add [packages]... [OPTIONS]
  • packages - A list of packages, space or comma separated, to add to the project
  • --dry-run - No changes made to the config or the package library, only reports what would happen if the command was run.
  • --no-sync - Packages are added to the config file, but not sync’ed.
rproject.toml
[project]
name = "my project"
r_version = "4.4"
repositories = [
{ alias = "PPM", url = "https://packagemanager.posit.co/cran/latest" }
]
dependencies = [
"tibble",
]