44Create a skeleton for a new package depending on Rcpp
55}
66\description {
7- \code {Rcpp.package.skeleton } automates the creation of
8- a new source package that intends to use features of Rcpp.
9-
7+ \code {Rcpp.package.skeleton } automates the creation of
8+ a new source package that intends to use features of Rcpp.
9+
1010 It is based on the \link [utils ]{package.skeleton } function
1111 which it executes first.
1212}
1313\usage {
14- Rcpp.package.skeleton(name = " anRpackage" , list = character (),
15- environment = .GlobalEnv , path = " ." , force = FALSE ,
14+ Rcpp.package.skeleton(name = " anRpackage" , list = character (),
15+ environment = .GlobalEnv , path = " ." , force = FALSE ,
1616 code_files = character (), cpp_files = character (),
17- example_code = TRUE , attributes = TRUE , module = FALSE ,
18- author = " Your Name" ,
19- maintainer = if (missing( author )) " Your Name" else author ,
20- email = " your@email.com" ,
17+ example_code = TRUE , attributes = TRUE , module = FALSE ,
18+ author = " Your Name" ,
19+ maintainer = if (missing( author )) " Your Name" else author ,
20+ email = " your@email.com" , githubuser = NA_character_ ,
2121 license = " GPL (>= 2)"
2222 )
2323}
@@ -35,42 +35,43 @@ Rcpp.package.skeleton(name = "anRpackage", list = character(),
3535 \item {author }{Author of the package. }
3636 \item {maintainer }{Maintainer of the package. }
3737 \item {email }{Email of the package maintainer. }
38+ \item {githubuser }{GitHub username for URL and BugReports , if present. }
3839 \item {license }{License of the package. }
3940}
4041\details {
41- In addition to \link [utils ]{package.skeleton } :
42-
43- The \samp {DESCRIPTION } file gains an Imports line requesting that
42+ In addition to \link [utils ]{package.skeleton } :
43+
44+ The \samp {DESCRIPTION } file gains an Imports line requesting that
4445 the package depends on Rcpp and a LinkingTo line so that the package
4546 finds Rcpp header files.
46-
47+
4748 The \samp {NAMESPACE } gains a \code {useDynLib } directive as well
4849 as an \code {importFrom(Rcpp , evalCpp } to ensure instantiation of Rcpp.
49-
50- The \samp {src } directory is created if it does not exists.
51-
50+
51+ The \samp {src } directory is created if it does not exists.
52+
5253 If \code {cpp_files } are provided then they will be copied to the \samp {src }
5354 directory.
54-
55- If the \code {example_code } argument is set to \code {TRUE },
55+
56+ If the \code {example_code } argument is set to \code {TRUE },
5657 example files \samp {rcpp_hello_world.h } and \samp {rcpp_hello_world.cpp }
57- are also created in the \samp {src }. An R file \samp {rcpp_hello_world.R } is
58+ are also created in the \samp {src }. An R file \samp {rcpp_hello_world.R } is
5859 expanded in the \samp {R } directory , the \code {rcpp_hello_world } function
5960 defined in this files makes use of the C ++ function \samp {rcpp_hello_world }
60- defined in the C ++ file. These files are given as an example and should
61+ defined in the C ++ file. These files are given as an example and should
6162 eventually by removed from the generated package.
62-
63+
6364 If the \code {attributes } argument is \code {TRUE }, then rather than generate
6465 the example files as described above , a single \samp {rcpp_hello_world.cpp }
65- file is created in the \samp {src } directory and it ' s attributes are
66- compiled using the \c ode{\l ink{compileAttributes}} function. This leads to
66+ file is created in the \samp {src } directory and it ' s attributes are
67+ compiled using the \c ode{\l ink{compileAttributes}} function. This leads to
6768 the files \s amp{RcppExports.R} and \s amp{RcppExports.cpp} being generated.
68- They are automatically regenerated from \e mph{scratch} each time
69- \c ode{\l ink{compileAttributes}} is called. Therefore, one should
69+ They are automatically regenerated from \e mph{scratch} each time
70+ \c ode{\l ink{compileAttributes}} is called. Therefore, one should
7071 \s trong{not} modify by hand either of the \s amp{RcppExports} files.
71-
72- If the \c ode{module} argument is \c ode{TRUE}, a sample Rcpp module will
73- be generated as well.
72+
73+ If the \c ode{module} argument is \c ode{TRUE}, a sample Rcpp module will
74+ be generated as well.
7475}
7576\v alue{
7677Nothing, used for its side effects
@@ -105,4 +106,3 @@ vignette( "Rcpp-modules" )
105106}
106107}
107108\k eyword{ programming }
108-
0 commit comments