clone | R Documentation |
Clone a module.
clone(name, from_name, deep = 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. |
from_name |
Name of module to clone. |
deep |
A flag. Should the entire register entry be cloned? |
For versioning purposes, it is often useful to clone modules.
A wrapper function around a make call for the defined module.
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.
define
, make
, reset
,
and root_config
.
reset()
define("foo", NULL, function() "foo")
clone("bar", "foo")
make("bar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.