rv remove
Introduced in rv v0.18.0
Terminal window
Terminal window
Terminal window
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.
rv remove [packages]... [OPTIONS]Arguments
Section titled “Arguments”packages- A list of package names to remove from the project, given as separate arguments (e.g.rv remove dplyr tidyr)
Options
Section titled “Options”--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.
Example
Section titled “Example”% rv remove tibbleRemoved 1 package from rproject.toml: - tibbleIf none of the packages given are found in the config file, rv remove reports that nothing happened rather than erroring:
% rv remove not-a-dependencyNo matching packages in rproject.toml. Nothing to remove.