drop {mod}R Documentation

Drop a Module

Description

Detach a named module from the search path. If no arguments is supplied, detach the most recently attached module.

Usage

drop(name)

Arguments

name

name of the module to exit from; character

Value

TRUE if successful; invisible

Examples


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


[Package mod version 0.1.3 Index]