p_unlock: Delete 00LOCK Directory

Description Usage Arguments Details Value See Also Examples

View source: R/p_unlock.R

Description

Deletes the 00LOCK directory accidentally left behind by a fail in install.packages.

Usage

1
p_unlock(lib.loc = p_path())

Arguments

lib.loc

Path to library location.

Details

Sometimes install.packages can "fail so badly that the lock directory is not removed: this inhibits any further installs to the library directory (or for –pkglock, of the package) until the lock directory is removed manually." p_unlock deletes the directory 00LOCK that is left behind.

Value

Attempts to delete a 00LOCK(s) if it exists. Returns logical TRUE if a 00LOCK existed and FALSE if not.

See Also

install.packages

Examples

1
2
3
4
## Not run: 
p_unlock()

## End(Not run)

Example output

The following 00LOCK has been deleted:
 /usr/local/lib/R/site-library/00LOCK-DominanceThe following 00LOCK has been deleted:
 /usr/lib/R/site-library/00LOCK-EnsembleBaseThe following 00LOCK has been deleted:
 /usr/lib/R/library/00LOCK-EnsemblePCRegThe following 00LOCK has been deleted:
 /usr/local/lib/R/site-library/00LOCK-GSVAThe following 00LOCK has been deleted:
 /usr/lib/R/site-library/00LOCK-JGRThe following 00LOCK has been deleted:
 /usr/lib/R/library/00LOCK-LLSRThe following 00LOCK has been deleted:
 /usr/local/lib/R/site-library/00LOCK-biplotbootGUIThe following 00LOCK has been deleted:
 /usr/lib/R/site-library/00LOCK-dynBiplotGUIThe following 00LOCK has been deleted:
 /usr/lib/R/library/00LOCK-forensimThe following 00LOCK has been deleted:
 /usr/local/lib/R/site-library/00LOCK-multibiplotGUIThe following 00LOCK has been deleted:
 /usr/lib/R/site-library/00LOCK-mutossGUIThe following 00LOCK has been deleted:
 /usr/lib/R/library/00LOCK-psDataThe following 00LOCK has been deleted:
 /usr/local/lib/R/site-library/00LOCK-zooaRchGUI

pacman documentation built on May 29, 2017, 10:50 a.m.