drop {mod} | R Documentation |
Detach a named module from the search path. If no arguments is supplied, detach the most recently attached module.
drop(name)
name |
name of the module to exit from; character |
TRUE
if successful; invisible
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()