clean: Remove Packages from the Library

Description Usage Arguments Examples

Description

Remove packages from the given library.

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

# Get unused package records
unused_packages()

# Clean all unused packages
clean()

# Clean specific packages
clean("foo")


## End(Not run)

packrat documentation built on May 2, 2019, 6:24 a.m.