skip_vdiffr: Skip test if 'PMF_SKIP_VDIFFR' environment variable set to...

View source: R/helpers-for-tests.R

skip_vdiffrR Documentation

Skip test if PMF_SKIP_VDIFFR environment variable set to TRUE

Description

Checks for custom PMF_SKIP_VDIFFR environment variable and skips any tests that use vdiffr if set to "true". This is useful because vdiffr::expect_doppleganger() is very fragile and tends to fail with false positives in other environments (like CI and ⁠R CMD CHECK⁠).

Usage

skip_vdiffr()

Details

Uses isTRUE(as.logical(Sys.getenv("PMF_SKIP_VDIFFR"))) to check. This resolves to TRUE if PMF_SKIP_VDIFFR is set to any of the following:

  • "true"

  • "TRUE"

  • "T"

  • "True"


metrumresearchgroup/pmforest documentation built on Aug. 11, 2024, 11:21 a.m.