sortedInstall: Install Local Source Packages Sorted by Dependency

Description Usage Arguments Details Value Author(s) References See Also

Description

Install packages from a local directory in proper dependency order. Only intended for packages of type 'source', i.e. "*.tar.gz".

Usage

1
sortedInstall(pkgDir = getwd(), libDir=NULL, addLib = TRUE, tmpName = "tmpdir", ...)

Arguments

pkgDir

directory where packages (.tar.gz extension) are located

libDir

directory where packages are to be installed (if NULL defaults to pkgDir)

addLib

logical: add pkgDir to .libPaths?

tmpName

temporary file created in pkgDir

...

arguments to be passed to install.packages call

Details

This function is an interactive way to recreate a particular package environment, with fine control over package versions. The user archives the packages locally. The function resolves the interdependencies to determine installation order.

Naturally, the metrumrg package and its dependencies must be attached in order to use sortedInstall. If these packages conflict with the contents of pkgDir, users will need detach them before attaching the desired versions. An easier solution may be closing the current R session and opening a new one.

If pkgDir contains more than one version of a package, the user will be prompted to choose one to install.

The user must have write privileges to pkgDir.

The function will destroy tmpName, so if tmpdir exists in pkgDir it should probably be renamed.

Value

Invisible NULL.

Author(s)

Natalie Hsiang

References

http://metrumrg.googlecode.com

See Also


metrumrg documentation built on May 2, 2019, 5:55 p.m.