registerPlugin | R Documentation |
Register an inline plugin for use with
sourceCpp
or cppFunction
. Inline plugins are functions
that return a list with additional includes, environment variables, and
other compilation context.
registerPlugin(name, plugin)
name |
Name of the inline plugin |
plugin |
Inline plugin function |
Plugins can be added to sourceCpp
compilations using the
Rcpp::plugins
attribute.
Rcpp::plugins
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.