Learn R Programming

switchr (version 0.14.8)

libManifest: libManifest

Description

Create a Session- or PkgManifest for the contents of a switchr library.

Usage

libManifest(
  lib = currentCompEnv(),
  record_versions = TRUE,
  known_manifest = makeManifest(dep_repos = repos),
  repos = defaultRepos(),
  ...
)

# S4 method for missing libManifest( lib = currentCompEnv(), record_versions = TRUE, known_manifest = makeManifest(dep_repos = repos), repos = defaultRepos(), ... )

# S4 method for character libManifest( lib = currentCompEnv(), record_versions = TRUE, known_manifest = makeManifest(dep_repos = repos), repos = defaultRepos(), ... )

# S4 method for SwitchrCtx libManifest( lib = currentCompEnv(), record_versions = TRUE, known_manifest = makeManifest(dep_repos = repos), repos = defaultRepos(), ... )

Value

a SessionManifest object containing version-specified entries for all packages installed in the specified library path(s).

Arguments

lib

A SwitchrCtx object, or the name of a switchr library. Defaults to the currently active switchr library.

record_versions

Should the exact versions of installed packages be recorded in the manifest (TRUE)

known_manifest

An existing manifest, used when imputing location information for packages not installed via install_packages

repos

A vector of traditional package repositories. Used when imputing location information for packages not installed via install_packages

...

currently unused

Examples

Run this code
# \dontshow{
intr <- interactive()
if(!intr){
oldlp <- .libPaths()
.libPaths(tail(oldlp, 1))
oldgi <- graceful_inet()
graceful_inet(TRUE)
}
# }
if(interactive()) {
  man = libManifest()
  man
}
# \dontshow{
if(!intr) {
  .libPaths(oldlp)
  graceful_inet(oldgi)
}
# }
if (FALSE) {
man2 = libManifest("myotherlib")
man2
}

Run the code above in your browser using DataLab