Skip to content

Commit 945de9e

Browse files
export Rcpp.plugin.maker from the NAMESPACE. closes #65
1 parent 4113c89 commit 945de9e

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

NAMESPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
useDynLib(Rcpp, .registration = TRUE)
32

43
import(methods)
@@ -31,7 +30,8 @@ export(Module,
3130
demangle,
3231
sizeof,
3332
cpp_object_initializer,
34-
cpp_object_dummy
33+
cpp_object_dummy,
34+
Rcpp.plugin.maker
3535
)
3636
S3method( print, bytes )
3737
exportClass(RcppClass)

man/Rcpp.plugin.maker.Rd

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
\name{Rcpp.plugin.maker}
2+
\alias{Rcpp.plugin.maker}
3+
\title{
4+
Facilitating making package plugins
5+
}
6+
\description{
7+
This function helps packages making inline plugins.
8+
}
9+
\usage{
10+
Rcpp.plugin.maker(
11+
include.before = "",
12+
include.after = "",
13+
LinkingTo = unique(c(package, "Rcpp")),
14+
Depends = unique(c(package, "Rcpp")),
15+
libs = "",
16+
Makevars = NULL,
17+
Makevars.win = NULL,
18+
package = "Rcpp"
19+
)
20+
}
21+
%- maybe also 'usage' for other objects documented here.
22+
\arguments{
23+
\item{include.before}{Code to be included before the \samp{Rcpp.h} file}
24+
\item{include.after}{Code to be included after the \samp{Rcpp.h} file }
25+
\item{LinkingTo}{Packages to be added to the \samp{LinkingTo} field }
26+
\item{Depends}{Packages to be added to the \samp{Depends} field }
27+
\item{libs}{library flags}
28+
\item{Makevars}{content for a \samp{Makevars} file, or \code{NULL}}
29+
\item{Makevars.win}{content for a \samp{Makevars.win} file, or \code{NULL}}
30+
\item{package}{The package this plugin is for. }
31+
}
32+
\value{
33+
A function that is suitable as a plugin. See for example the
34+
\samp{RcppArmadillo} package that uses this to create its inline plugin.
35+
}
36+
\keyword{interface}

0 commit comments

Comments
 (0)