drop: Detach a Module from the Search Path

Description Usage Arguments Value See Also Examples

View source: R/core.R View source: R/utils.R

Description

If no argument is supplied, detach the most recently attached module.

Usage

1

Arguments

name

name of the module to exit from; character

Value

TRUE if successful; invisible

See Also

use

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use(mod::ule({
   a <- 1
}), as = "my_module")

use(mod::ule({
   b <- 2
}), as = "my_other_module")

search()

# by name
drop("my_module")

# and at the head position
drop()

search()

iqis/ntr documentation built on Dec. 7, 2019, 10:20 p.m.