Can only be used in a module expression. Emulates the effect of base::require() in its containing module, making functions and their chain of environment available. Masks base::require() inside a module context.
require(package)
package | name of the package; name or character |
---|
NULL
; invisible
mod_tcl <- mod::ule({ mod:::require(tcltk) # It is suggested to omit mod::: when using f <- tcl }) identical(mod_tcl$f, tcltk::tcl)#> [1] TRUE