diff --git a/inst/tinytest/test_packageversion.R b/inst/tinytest/test_packageversion.R index 6df612c79..871510d5e 100644 --- a/inst/tinytest/test_packageversion.R +++ b/inst/tinytest/test_packageversion.R @@ -1,5 +1,5 @@ -## Copyright (C) 2019 - 2022 Dirk Eddelbuettel +## Copyright (C) 2019 - 2024 Dirk Eddelbuettel ## ## This file is part of Rcpp. ## @@ -30,7 +30,7 @@ v <- as.integer(unlist(strsplit(pvstr, "\\."))) relstr <- as.character(as.package_version(paste(v[1:3], collapse="."))) ## call C++ function returning list of six values, three each for 'release' and 'dev' version -res <- checkVersion(v) +res <- checkVersion(v[1:min(4, length(v))]) ## basic check: is the #defined version equal to the computed version (issue #1014)