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

Share:

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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

1
2
3
4
5
6
7
man = libManifest()
man
## Not run: 
man2 = libManifest("myotherlib")
man2

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.