Skip to content

Commit 988ad31

Browse files
committed
in skeleton generator wrap any() around grepl() to suppress warning
1 parent 07cc044 commit 988ad31

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-01-02 Dirk Eddelbuettel <[email protected]>
2+
3+
* R/RcppEigen.package.skeleton.R: Wrap any() around grepl()
4+
15
2020-12-25 Dirk Eddelbuettel <[email protected]>
26

37
* .github/workflows/ci.yaml: Small tweaks to CI YAML file

R/RcppEigen.package.skeleton.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
7979
## add a useDynLib to NAMESPACE,
8080
NAMESPACE <- file.path(root, "NAMESPACE")
8181
lines <- readLines(NAMESPACE)
82-
if (! grepl("useDynLib", lines)) {
82+
if (!any(grepl("useDynLib", lines))) {
8383
lines <- c(sprintf("useDynLib(%s)", name),
8484
"import(RcppEigen)",
8585
"importFrom(Rcpp, evalCpp)", ## ensures Rcpp instantiation

0 commit comments

Comments
 (0)