4
4
Create a skeleton for a new package that intends to use RcppArmadillo
5
5
}
6
6
\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
+
10
10
It is based on the \link [utils ]{package.skeleton } function
11
11
which it executes first.
12
12
}
13
13
\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)" )
17
20
}
18
21
\arguments {
19
22
\item {name }{See \link [utils ]{package.skeleton }}
@@ -23,27 +26,32 @@ RcppArmadillo.package.skeleton(name = "anRpackage", list = character(),
23
26
\item {force }{See \link [utils ]{package.skeleton }}
24
27
\item {code_files }{See \link [utils ]{package.skeleton }}
25
28
\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. }
26
34
}
27
35
\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
32
40
a LinkingTo line so that the package finds Rcpp and RcppArmadillo header files.
33
-
41
+
34
42
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
37
45
a \samp {Makevars } file is added setting the environment variable
38
46
\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 },
42
50
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
44
52
expanded in the \samp {R } directory , the \code {rcpparma_hello_world } function
45
53
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
47
55
eventually by removed from the generated package.
48
56
}
49
57
\value {
@@ -65,4 +73,3 @@ RcppArmadillo.package.skeleton( "foobar" )
65
73
}
66
74
}
67
75
\keyword { programming }
68
-
0 commit comments