refer {mod} | R Documentation |
Can only be used inside a module expression. Makes reference to objects from one module, with specified filters.
refer(..., include = c(), exclude = c(), prefix = "", sep = ".")
... |
names of modules; dot-dot-dot |
include |
names to include; character |
exclude |
names to excludde; character |
prefix |
prefix to names; character |
sep |
separator between prefix and names; character |
NULL
; invisible
mod_a <- mod::ule(number <- 1)
mod_b <- mod::ule(number <- 2)
mod_c <- mod::ule({
mod:::refer(mod_a, mod_b, prefix = .)
# It is suggested to omit mod::: when using
number <- mod_a.number + mod_b.number
})
mod_c$number