Learn R Programming

packrat (version 0.4.8-1)

clean: Remove Packages from the Library

Description

Remove packages from the given library.

Usage

clean(packages = NULL, project = NULL, lib.loc = libDir(project), dry.run = FALSE, force = FALSE)

Arguments

packages
A set of package names to remove from the project. When NULL, unused_packages is used to find packages unused in the project.
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?

Examples

Run this code
## Not run: 
# 
# # Get unused package records
# unused_packages()
# 
# # Clean all unused packages
# clean()
# 
# # Clean specific packages
# clean("foo")
# 
# ## End(Not run)

Run the code above in your browser using DataLab