Activate and Deactivate Lib Mode
lib_mode.RdWhen activated, lib_mode() adds a new library location
(aka lib.loc) to the top of the library tree.
This allows you to run code in an "sandbox", without
interfering with the other packages you have installed previously.
See vignette("lib-mode") for more details with examples.
Usage
lib_mode(path = getOption("helpr_path"))
lib_tree()
is_lib_mode()Functions
lib_tree(): A thin wrapper around.libPaths()to quickly and easily view the current library tree of directories the session knows about.is_lib_mode(): Determines whether a session is currently in "lib mode".
Examples
if (FALSE) { # \dontrun{
dir.create("new-lib")
lib_mode("new-lib") # ON; activate
lib_mode("new-lib") # OFF; deactivate
lib_mode("new-lib") # ON; re-activate
} # }