We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b0314 commit 1aefde4Copy full SHA for 1aefde4
tests/testthat/helper-vdiffr.R
@@ -2,7 +2,7 @@
2
# VDIFFR_RUN_TESTS is explicitly set to "true", which should be the case only on
3
# a GitHub Actions CI runner with stable version of R.
4
5
-if (requireNamespace("vdiffr", quietly = TRUE)) {
+if (requireNamespace("vdiffr", quietly = TRUE) && utils::packageVersion('testthat') >= '3.0.3') {
6
expect_doppelganger <- vdiffr::expect_doppelganger
7
} else {
8
# If vdiffr is not available and visual tests are explicitly required, raise error.
0 commit comments