File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- # vdiffr ignores failures when
2
- # - VDIFFR_RUN_TESTS is "false" (on Travis CI with older versions and dev version of R)
3
- # - CI is not set (on CRAN)
1
+ # By default, if vdiffr is not installed, all visual tests are skipped unless
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
4
5
5
if (requireNamespace(" vdiffr" , quietly = TRUE )) {
6
6
expect_doppelganger <- vdiffr :: expect_doppelganger
7
7
} else {
8
- # If vdiffr is not available and visual tests are not explicitly disabled , raise error.
9
- if (! identical(Sys.getenv(" VDIFFR_RUN_TESTS" ), " false " )) {
8
+ # If vdiffr is not available and visual tests are explicitly required , raise error.
9
+ if (identical(Sys.getenv(" VDIFFR_RUN_TESTS" ), " true " )) {
10
10
abort(" vdiffr is not installed" )
11
11
}
12
12
You can’t perform that action at this time.
0 commit comments