undefine: Undefine a Module.

Description Usage Arguments Warning See Also Examples

View source: R/define.R

Description

Undefine a module by dropping it definition from the modulr internal state.

Usage

1

Arguments

name

A string (character vector of lenght one).

A module name can contain letters, figures and some special characters, namely _, -, and /. The latter is a namespace separator.

Names containing /mock/, /mocks/, /test/, /tests/, /example/, or /examples/ have a special meaning related to code testing and examples.

The name "modulr" corresponds to a special module and is therefore reserved.

Warning

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.

See Also

define, list_modules, and reset.

Examples

1
2
3
4
5
reset()
define("foo", NULL, function() "foo")
list_modules()
undefine("foo")
list_modules()

openscienceunil/modulr documentation built on May 3, 2019, 5:49 p.m.