Description Usage Arguments Value Examples
View source: R/core.R View source: R/utils.R
Load/Attach a Module to the Search Path
1 2 |
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 |
TRUE
if successful; invisible
1 2 3 4 5 6 7 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.