https://github.com/cran/Rcpp
Tip revision: d1dd008b8ba0a00753399d0c68efc656900ec3e2 authored by Dirk Eddelbuettel on 17 March 2020, 07:20:02 UTC
version 1.0.4
version 1.0.4
Tip revision: d1dd008
registerPlugin.Rd
\name{registerPlugin}
\alias{registerPlugin}
\title{
Register an inline plugin
}
\description{
Register an \link[inline:plugins]{inline plugin} for use with
\code{\link{sourceCpp}} or \code{\link{cppFunction}}. Inline plugins are functions
that return a list with additional includes, environment variables, and
other compilation context.
}
\usage{
registerPlugin(name, plugin)
}
\arguments{
\item{name}{Name of the inline plugin}
\item{plugin}{Inline plugin function}
}
\details{
Plugins can be added to \code{\link{sourceCpp}} compilations using the
\code{\link[=pluginsAttribute]{Rcpp::plugins}} attribute.
}
\seealso{
\code{\link[=pluginsAttribute]{Rcpp::plugins}}
}