powered by
Remove packages from the given library.
clean( packages = NULL, project = NULL, lib.loc = libDir(project), dry.run = FALSE, force = FALSE )
A set of package names to remove from the project. When NULL, unused_packages is used to find packages unused in the project.
NULL
unused_packages
The project directory. Defaults to current working directory.
The library to clean. Defaults to the private package library associated with the project directory.
Perform a dry run, returning records on which packages would have been moved by the current clean action.
Force package removal, even if they are still in use within the project?
if (FALSE) { # Get unused package records unused_packages() # Clean all unused packages clean() # Clean specific packages clean("foo") }
Run the code above in your browser using DataLab