cnd_exports | R Documentation |
[cnd_exports()]
should be used within a package's building
environment.
cnd_exports(env = parent.frame())
env |
The package environment |
Nothing, called for its side-effects
e <- new.env()
registry <- cnd_create_registry("EXAMPLE", env = e)
local(envir = e, {
my_fun <- function() NULL
condition(
"my_condition",
package = "example_package",
exports = "my_fun",
registry = registry
)
cnd_exports()
})
# conditions are now added to my_fun():
e$my_fun
conditions(e$my_fun)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.