with_package

0th

Percentile

Evaluate an expression with a package loaded

The package will be installed into a temporary directory. Then all required dependencies will be loaded, and the package will be loaded as well.

Keywords
internal
Usage
with_package(path, expr)
Arguments
path
Path to the package directory and tarball to load.
expr
Expression to evaluate.
Details

After the expression is evaluated, all dependencies and the package itself will be unloaded, and the temporary library directory will be deleted. The library path will be also restored.

Value

Value of the evaluated expression.

Aliases
  • with_package
Documentation reproduced from package functionMap, version 1.0.0, License: GPL-2

Community examples

Looks like there are no examples yet.