Learn R Programming

mod (version 0.1.3)

drop: 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

Run this code
# NOT RUN {
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()

# }

Run the code above in your browser using DataLab