Skip to content

Commit 6062d56

Browse files
committed
use getRcppVersion for Rcpp version in skeleton
1 parent 3af3036 commit 6062d56

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-04-27 Dirk Eddelbuettel <[email protected]>
2+
3+
* R/Rcpp.package.skeleton.R (Rcpp.package.skeleton): Use getRcppVersion()
4+
15
2019-04-26 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Version, Date): Roll minor version

R/Rcpp.package.skeleton.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2009 - 2016 Dirk Eddelbuettel and Romain Francois
1+
# Copyright (C) 2009 - 2019 Dirk Eddelbuettel and Romain Francois
22
#
33
# This file is part of Rcpp.
44
#
@@ -81,8 +81,7 @@ Rcpp.package.skeleton <- function(name = "anRpackage", list = character(),
8181
# Add Rcpp to the DESCRIPTION
8282
DESCRIPTION <- file.path(root, "DESCRIPTION")
8383
if (file.exists(DESCRIPTION)) {
84-
imports <- c(if (isTRUE(module)) "methods",
85-
sprintf("Rcpp (>= %s)", packageDescription("Rcpp")[["Version"]]))
84+
imports <- c(if (isTRUE(module)) "methods", sprintf("Rcpp (>= %s)", getRcppVersion()))
8685
x <- cbind(read.dcf(DESCRIPTION),
8786
"Imports" = paste(imports, collapse = ", "),
8887
"LinkingTo" = "Rcpp")

inst/NEWS.Rd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
\itemize{
1010
\item Files in \code{src/} are now consistentely lowercase (Dirk
1111
in \ghpr{956}).
12+
\item The Rcpp 'API Version' is now accessible via
13+
\code{getRcppVersion()} (Dirk in \ghpr{963}).
1214
}
1315
\item Changes in Rcpp Attributes:
1416
\itemize{

0 commit comments

Comments
 (0)