Skip to content

Commit af0155c

Browse files
committed
No longer set Imports: in skeleton package generator
1 parent 421c2b9 commit af0155c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2023-03-10 Dirk Eddelbuettel <[email protected]>
2+
3+
* R/RcppEigen.package.skeleton.R: No longer set Imports: RcppEigen in
4+
DESCRIPTION and NAMESPACE
5+
16
2023-02-12 Dirk Eddelbuettel <[email protected]>
27

38
* inst/CITATION: Convert to bibentry() style with person()

R/RcppEigen.package.skeleton.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## RcppEigen.package.skeleton.R: makes a skeleton for a package that wants to use RcppEigen
22
##
3-
## Copyright (C) 2011 - 2021 Douglas Bates, Dirk Eddelbuettel and Romain Francois
3+
## Copyright (C) 2011 - 2023 Douglas Bates, Dirk Eddelbuettel and Romain Francois
44
##
55
## This file is part of RcppEigen.
66
##
@@ -68,7 +68,7 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
6868
DESCRIPTION <- file.path(root, "DESCRIPTION")
6969
if (file.exists(DESCRIPTION)) {
7070
x <- cbind(read.dcf(DESCRIPTION),
71-
"Imports" = sprintf("Rcpp (>= %s), RcppEigen",
71+
"Imports" = sprintf("Rcpp (>= %s)",
7272
packageDescription("Rcpp")[["Version"]]),
7373
"LinkingTo" = "Rcpp, RcppEigen")
7474
write.dcf(x, file = DESCRIPTION)
@@ -81,7 +81,6 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
8181
lines <- readLines(NAMESPACE)
8282
if (!any(grepl("useDynLib", lines))) {
8383
lines <- c(sprintf("useDynLib(%s)", name),
84-
"import(RcppEigen)",
8584
"importFrom(Rcpp, evalCpp)", ## ensures Rcpp instantiation
8685
lines)
8786
writeLines(lines, con = NAMESPACE)

0 commit comments

Comments
 (0)