Interactively find, make, and bind a module.
hit(name, suffix = getOption("modulr.hit_suffix"), replace = TRUE, execute = FALSE)
name | A string (character vector of lenght one). A module name can contain letters, figures and some special characters,
namely Names containing The name "modulr" corresponds to a special module and is therefore reserved. |
---|---|
suffix | A string (character vector of lenght one). Suffix added to variable names. |
replace | A flag. Should existing bindings be replaced? |
execute | A flag. Should binding be automatically made? |
See make
and module_options
.
It is considered a very bad practice to define, touch, undefine, load, make, reset, or perform any other operation from within a module definition that may alterate the internal state of modulr.
make
.
"foobar" %provides% "Hello World"#> [2018-12-02T17:14:00 CET] Defining 'foobar' ... OK"foo" %provides% "Hello"#> [2018-12-02T17:14:00 CET] Re-defining 'foo' ... OK## Not run: hit("foo") ## Not run: hit(foo)