syncLocalLibList {reposTools} | R Documentation |
Will look for a file liblisting.Rda in specified R library directory, and synch any information that is not in the current liblisting into that file. If no such file exists, will create one.
syncLocalLibList(lib = reposToolsLibPaths(), quiet=TRUE)
lib |
A vector of library directories to synch. Default is reposToolsLibPaths() |
quiet |
A verbosity argument. More output is provided when FALSE |
If there is not currently a liblisting.Rda file in the specified lib(s), one will be created. Any new information (new packages, updated versions, etc) will be reflected into the liblisting.Rda file. If multiple libs are specified, this procedure will be repeated across all libs.
The liblisting.Rda file contains an object named locLibList
.
This object is a list of localPkg
objects. Each object in the
list represents one installed package in that library directory.
Jeff Gentry
install.packages2
,
update.packages2
, remove.packages2
, reposToolsLibPaths
## make a temporary directory for use in this example a <- tempfile() dir.create(a) syncLocalLibList(a) unlink(a,recursive=TRUE)