drop: Drop a Module

Description Usage Arguments Value Examples

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

Description

Detach a named module from the search path. If no arguments 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

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()

mod documentation built on Aug. 23, 2019, 5:05 p.m.

Related to drop in mod...