use {mod} | R Documentation |
Load/Attach a Module to the Search Path
Description
Load/Attach a Module to the Search Path
Usage
use(module, as, parent = baseenv(), lock = TRUE,
expose_private = FALSE)
Arguments
module |
module object, or path to a module file |
as |
name when attached to search; character |
parent |
the enclosing environment |
lock |
lock the environment; logical |
expose_private |
expose the private environment as '..private..'; logical |
Value
TRUE
if successful; invisible
Examples
module_path <- system.file("misc", "example_module.R", package = "mod")
example_module <- acquire(module_path)
# Attach module object to search path
use(example_module)
# or directly from file
use(module_path, "example_module")
[Package mod version 0.1.3 Index]