Skip to content

rv remove

Introduced in rv v0.18.0

Used to quickly remove packages from the config file, then sync.

rv remove matches packages in the dependencies field by name, regardless of whether they were declared as a simple dependency or with a more advanced table entry (git, path, url, etc.), and removes the matching entries from the config file.

Terminal window
rv remove [packages]... [OPTIONS]
  • packages - A list of package names to remove from the project, given as separate arguments (e.g. rv remove dplyr tidyr)
  • --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 removed from the config file, but not synced.
Terminal window
% rv remove tibble
Removed 1 package from rproject.toml:
- tibble

If none of the packages given are found in the config file, rv remove reports that nothing happened rather than erroring:

Terminal window
% rv remove not-a-dependency
No matching packages in rproject.toml. Nothing to remove.