Skip to content

Commit c7ed64a

Browse files
committed
Replace installed.packages with packageVersion
1 parent 69544ae commit c7ed64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/pkg/tests/run-all.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if (identical(Sys.getenv("NOT_CRAN"), "true")) {
6161
set.seed(42)
6262

6363
# To be removed once testthat 1.x is removed from all builds
64-
if (grepl("^1\\..*", installed.packages()["testthat", "Version"])) {
64+
if (grepl("^1\\..*", packageVersion("testthat"))) {
6565
# testthat 1.x
6666
test_runner <- testthat:::run_tests
6767
reporter <- "summary"

0 commit comments

Comments
 (0)