Skip to content

Commit 69cb4dd

Browse files
committed
Small robustification for package version check during dev cycle
1 parent 528f453 commit 69cb4dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tinytest/test_packageversion.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
## Copyright (C) 2019 - 2022 Dirk Eddelbuettel
2+
## Copyright (C) 2019 - 2024 Dirk Eddelbuettel
33
##
44
## This file is part of Rcpp.
55
##
@@ -30,7 +30,7 @@ v <- as.integer(unlist(strsplit(pvstr, "\\.")))
3030
relstr <- as.character(as.package_version(paste(v[1:3], collapse=".")))
3131

3232
## call C++ function returning list of six values, three each for 'release' and 'dev' version
33-
res <- checkVersion(v)
33+
res <- checkVersion(v[1:min(4, length(v))])
3434

3535

3636
## basic check: is the #defined version equal to the computed version (issue #1014)

0 commit comments

Comments
 (0)