I recently learned the hard way that a test for which I have skip_if_offline() can still hit a secondary GitHub API rate limit on CRAN, causing intermittent test failure. Clearly this test also needs skip_on_cran().
This made me think: maybe that is generally true? Or almost always true?
I think it's worth considering if skip_if_offline() should also skip on CRAN or have an argument to control this, defaulting to TRUE.
I recently learned the hard way that a test for which I have
skip_if_offline()can still hit a secondary GitHub API rate limit on CRAN, causing intermittent test failure. Clearly this test also needsskip_on_cran().This made me think: maybe that is generally true? Or almost always true?
I think it's worth considering if
skip_if_offline()should also skip on CRAN or have an argument to control this, defaulting toTRUE.