local_without_touchstone_lib: Temporarily remove all touchstone libraries from the path

View source: R/utils.R

local_without_touchstone_libR Documentation

Temporarily remove all touchstone libraries from the path

Description

This is useful in conjunction with run_script().

Usage

local_without_touchstone_lib(path_pkg = ".", envir = parent.frame())

Arguments

path_pkg

The path to the package that contains the touchstone library.

envir

The environment that triggers the deferred action on destruction.

Details

  • Add a touchstone library to the path with run_script() and run a script. The script hence may contain calls to libraries only installed in touchstone libraries.

  • benchmark code with benchmark_run(). At the start, remove all all touchstone libraries from path and add the touchstone library we need.

Advantages: Keep benchmarked repo in touchstone library only.


lorenzwalthert/touchstone documentation built on April 9, 2024, 7:38 p.m.