- Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathRcppParallel.package.skeleton.Rd
67 lines (57 loc) · 2.15 KB
/
RcppParallel.package.skeleton.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
% Generatedbyroxygen2:donoteditbyhand
% PleaseeditdocumentationinR/skeleton.R
\name{RcppParallel.package.skeleton}
\alias{RcppParallel.package.skeleton}
\title{CreateaskeletonforanewpackagedependingonRcppParallel}
\usage{
RcppParallel.package.skeleton(name="anRpackage", example_code=TRUE, ...)
}
\arguments{
\item{name}{ThenameofyourRpackage.}
\item{example_code}{If \code{TRUE}, exampleC++codeusingRcppParallelis
addedtothepackage.}
\item{...}{Optionalargumentspassedto \link[Rcpp]{Rcpp.package.skeleton}.}
}
\value{
Nothing, usedforitssideeffects
}
\description{
\code{RcppParallel.package.skeleton} automatesthecreationofanewsource
packagethatintendstousefeaturesofRcppParallel.
}
\details{
Itisbasedonthe \link[utils]{package.skeleton} functionwhichitexecutes
first.
Inadditionto \link[Rcpp]{Rcpp.package.skeleton} :
The \samp{DESCRIPTION} filegainsanImportslinerequestingthatthe
packagedependsonRcppParallelandaLinkingTolinesothatthepackage
findsRcppParallelheaderfiles.
The \samp{NAMESPACE} gainsa \code{useDynLib} directiveaswellasan
\code{importFrom(RcppParallel, evalCpp} toensureinstantiationof
RcppParallel.
The \samp{src} directoryiscreatedifitdoesnotexistsanda
\samp{Makevars} fileisaddedsettingtheenvironmentvariables
\samp{PKG_LIBS} toaccomodatethenecessaryflagstolinkwiththe
RcppParallellibrary.
Ifthe \code{example_code} argumentissetto \code{TRUE}, examplefiles
\samp{vector-sum.cpp} iscreatedinthe \samp{src} directory.
\code{Rcpp::compileAttributes()} isthencalledtogenerate
\code{src/RcppExports.cpp} and \code{R/RcppExports.R}.Thesefilesaregiven
asanexampleandshouldeventuallybyremovedfromthegeneratedpackage.
}
\examples{
\dontrun{
# simple package
RcppParallel.package.skeleton("foobar")
}
}
\references{
Readthe \emph{WritingRExtensions} manualformoredetails.
Onceyouhavecreateda \emph{source} packageyouneedtoinstallit:see
the \emph{RInstallationandAdministration} manual, \code{\link{INSTALL}}
and \code{\link{install.packages}}.
}
\seealso{
\link[utils]{package.skeleton}
}
\keyword{programming}