Description Usage Arguments Value Examples
Can only be used inside a module expression. If this function is used, only the names included as argument are public. If not used, every name in the module will be public.
1 |
... |
name of any object to be accessible by user; name or character |
NULL
; invisible
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | mod_a <- mod::ule({
# names included in provide() are public, however...
mod:::provide(var,.var, ..var)
# It is suggested to omit mod::: when using
var <- 1
.var <- 2
..var <- 3 # objects denoted by .. prefix are always private.
another_var <- 4 # objects not included in provide() are also private.
})
mod_b <- mod::ule({
# if no call to provide(), all objects are public, except...
var <- 1
.var <- 2
..var <- 3 # objects denoted by .. prefix are always private.
})
ls(mod_a)
ls(mod_b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.