syncLocalLibList {reposTools}R Documentation

A function to synch the local library file

Description

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.

Usage

syncLocalLibList(lib = reposToolsLibPaths(), quiet=TRUE)

Arguments

lib A vector of library directories to synch. Default is reposToolsLibPaths()
quiet A verbosity argument. More output is provided when FALSE

Details

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.

Author(s)

Jeff Gentry

See Also

install.packages2, update.packages2, remove.packages2, reposToolsLibPaths

Examples

    ## make a temporary directory for use in this example
    a <- tempfile()
    dir.create(a)
    syncLocalLibList(a)
    unlink(a,recursive=TRUE)

[Package reposTools version 1.8.0 Index]