libManifest: libManifest

libManifestR 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

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


man = libManifest()
man

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

## End(Not run)

gmbecker/switchr documentation built on Feb. 24, 2023, 12:59 p.m.