44Create a skeleton for a new package that intends to use RcppArmadillo
55}
66\description {
7- \code {RcppArmadillo.package.skeleton } automates the creation of
8- a new source package that intends to use features of RcppArmadilo.
9-
7+ \code {RcppArmadillo.package.skeleton } automates the creation of
8+ a new source package that intends to use features of RcppArmadilo.
9+
1010 It is based on the \link [utils ]{package.skeleton } function
1111 which it executes first.
1212}
1313\usage {
14- RcppArmadillo.package.skeleton(name = " anRpackage" , list = character (),
15- environment = .GlobalEnv , path = " ." , force = FALSE ,
16- code_files = character (), example_code = TRUE )
14+ RcppArmadillo.package.skeleton(name = " anRpackage" , list = character (),
15+ environment = .GlobalEnv , path = " ." , force = FALSE ,
16+ code_files = character (), example_code = TRUE , author = " Your Name" ,
17+ maintainer = if (missing(author )) " Your Name" else author ,
18+ email = " [email protected] " ,
githubuser = NA_character_ ,
19+ license = " GPL (>= 2)" )
1720}
1821\arguments {
1922 \item {name }{See \link [utils ]{package.skeleton }}
@@ -23,27 +26,32 @@ RcppArmadillo.package.skeleton(name = "anRpackage", list = character(),
2326 \item {force }{See \link [utils ]{package.skeleton }}
2427 \item {code_files }{See \link [utils ]{package.skeleton }}
2528 \item {example_code }{If TRUE , example c ++ code using RcppArmadillo is added to the package }
29+ \item {author }{Author of the package. }
30+ \item {maintainer }{Maintainer of the package. }
31+ \item {email }{Email of the package maintainer. }
32+ \item {githubuser }{GitHub username for URL and BugReports , if present. }
33+ \item {license }{License of the package. }
2634}
2735\details {
28- In addition to \link [utils ]{package.skeleton } :
29-
30- The \samp {DESCRIPTION } file gains a Depends line requesting that
31- the package depends on Rcpp and RcppArmadillo and
36+ In addition to \link [utils ]{package.skeleton } :
37+
38+ The \samp {DESCRIPTION } file gains a Depends line requesting that
39+ the package depends on Rcpp and RcppArmadillo and
3240 a LinkingTo line so that the package finds Rcpp and RcppArmadillo header files.
33-
41+
3442 The \samp {NAMESPACE }, if any , gains a \code {useDynLib } directive.
35-
36- The \samp {src } directory is created if it does not exists and
43+
44+ The \samp {src } directory is created if it does not exists and
3745 a \samp {Makevars } file is added setting the environment variable
3846 \samp {PKG_LIBS } to accomodate the necessary flags
39- to link with the Rcpp library.
40-
41- If the \code {example_code } argument is set to \code {TRUE },
47+ to link with the Rcpp library.
48+
49+ If the \code {example_code } argument is set to \code {TRUE },
4250 example files \samp {rcpparma_hello_world.h } and \samp {rcpparma_hello_world.cpp }
43- are also created in the \samp {src }. An R file \samp {rcpparma_hello_world.R } is
51+ are also created in the \samp {src }. An R file \samp {rcpparma_hello_world.R } is
4452 expanded in the \samp {R } directory , the \code {rcpparma_hello_world } function
4553 defined in this files makes use of the C ++ function \samp {rcpparma_hello_world }
46- defined in the C ++ file. These files are given as an example and should
54+ defined in the C ++ file. These files are given as an example and should
4755 eventually by removed from the generated package.
4856}
4957\value {
@@ -65,4 +73,3 @@ RcppArmadillo.package.skeleton( "foobar" )
6573}
6674}
6775\keyword { programming }
68-
0 commit comments