libManifest {switchr}R Documentation

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 signature 'missing'
libManifest(
  lib = currentCompEnv(),
  record_versions = TRUE,
  known_manifest = makeManifest(dep_repos = repos),
  repos = defaultRepos(),
  ...
)

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

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

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

Value

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

Note

The manifest generated by this function will not include base packages, as they are part of R and not installable in the traditional sense.

Examples


if(interactive()) {
  man = libManifest()
  man
}

## Not run: 
man2 = libManifest("myotherlib")
man2

## End(Not run)

[Package switchr version 0.14.8 Index]