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