clean | R Documentation |
Remove packages from the given library.
clean(
packages = NULL,
project = NULL,
lib.loc = libDir(project),
dry.run = FALSE,
force = FALSE
)
packages |
A set of package names to remove from the project. When
|
project |
The project directory. Defaults to current working directory. |
lib.loc |
The library to clean. Defaults to the private package library associated with the project directory. |
dry.run |
Perform a dry run, returning records on which packages would have been moved by the current clean action. |
force |
Force package removal, even if they are still in use within the project? |
## Not run:
# Get unused package records
unused_packages()
# Clean all unused packages
clean()
# Clean specific packages
clean("foo")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.