Package 'librarysnapshot'

Title: Library Snapshot for Packages and Dependencies in Use by Current Session
Description: Generate a local library copy with relevant packages. All packages currently found within the search path - except base packages - will be copied to the directory provided and can be used later on with the .libPaths() function.
Authors: Peter Meissner [aut, cre]
Maintainer: Peter Meissner <[email protected]>
License: MIT + file LICENSE
Version: 0.1.3
Built: 2024-11-01 11:27:49 UTC
Source: https://github.com/petermeissner/librarysnapshot

Help Index


library_snapshot

Description

Make a local copy of the currently used packages within the session from the currently used library.

Usage

library_snapshot(path = NULL, write_list = TRUE, copy.mode = TRUE,
  exclude_base = TRUE)

Arguments

path

path to which to copy packages to; if NULL

write_list

adds package information csv-file to path; needs path to be set

copy.mode

passed through to file.copy

exclude_base

should 'base' R packages be excluded or not

Value

Returns the paths from which packages were copied

Examples

## Not run: 


library_snapshot()

library_snapshot(path = tempdir())



## End(Not run)

package_dependencies

Description

package_dependencies

Usage

package_dependencies(pkg, env = NULL, dependency_type = c("depends",
  "imports", "linkingto"))

Arguments

pkg

the package to resolve dependencies for

env

an environment to store results in, is primarily used for recursion

dependency_type

the dependency types to include, e.g. "depends", "imports", "linkingto", "suggests" – will leave out suggests by default


session_dependencies

Description

session_dependencies

Usage

session_dependencies(exclude_base = TRUE)

Arguments

exclude_base

should base and recommended packages be excluded from dependencies?