1
1
# # RcppEigen.package.skeleton.R: makes a skeleton for a package that wants to use RcppEigen
2
2
# #
3
- # # Copyright (C) 2011 - 2021 Douglas Bates, Dirk Eddelbuettel and Romain Francois
3
+ # # Copyright (C) 2011 - 2023 Douglas Bates, Dirk Eddelbuettel and Romain Francois
4
4
# #
5
5
# # This file is part of RcppEigen.
6
6
# #
@@ -68,7 +68,7 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
68
68
DESCRIPTION <- file.path(root , " DESCRIPTION" )
69
69
if (file.exists(DESCRIPTION )) {
70
70
x <- cbind(read.dcf(DESCRIPTION ),
71
- " Imports" = sprintf(" Rcpp (>= %s), RcppEigen " ,
71
+ " Imports" = sprintf(" Rcpp (>= %s)" ,
72
72
packageDescription(" Rcpp" )[[" Version" ]]),
73
73
" LinkingTo" = " Rcpp, RcppEigen" )
74
74
write.dcf(x , file = DESCRIPTION )
@@ -81,7 +81,6 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
81
81
lines <- readLines(NAMESPACE )
82
82
if (! any(grepl(" useDynLib" , lines ))) {
83
83
lines <- c(sprintf(" useDynLib(%s)" , name ),
84
- " import(RcppEigen)" ,
85
84
" importFrom(Rcpp, evalCpp)" , # # ensures Rcpp instantiation
86
85
lines )
87
86
writeLines(lines , con = NAMESPACE )
0 commit comments