r-lib / testthat

An R 📦 to make testing 😀
https://testthat.r-lib.org
Other
868 stars 313 forks source link

[feature request] export `on_cran` #1921

Closed pawelru closed 4 months ago

pawelru commented 5 months ago

As a developer Sometimes I want to use exactly the same condition as in skip_on_cran(). An example could be: if not on cran - set following options in my testing setup file.

hadley commented 4 months ago

We don't want to export these functions because they are not directly related to the purpose of testthat. But you're welcome to copy and paste and recreate in your own package; they're generally pretty simple.