Description Usage Arguments Details Warning See Also Examples
Reset the modulr internal state.
1 |
all |
A flag. Should stashes be also dropped? |
.verbose |
A flag. For internal use only. Should be verbose? |
Reset the modulr internal state: definitions and configurations are dropped,
verbosity is set to default (see set_verbosity
), .Last.name is
set to NULL (see .Last.name
), and root directory is set to
default (see root_config
). After a reset, the special module
modulr
is automatically defined. If all
is set to TRUE
,
stashes are also dropped (see stash
).
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.
.Last.name
, define
,
list_modules
, list_stashes
,
reset
, root_config
,
set_verbosity
, and stash
.
1 2 3 4 5 6 7 8 9 10 11 12 | reset()
define("foo", NULL, function() NULL)
root_config$set("./foobar")
stash(comment = "foo stash")
set_verbosity(+Inf)
reset()
list_modules()
list_stashes()
root_config$get_all()
.Last.name
reset(all = TRUE)
list_stashes()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.