Skip to content

[R-pkg-devel] Conditional timeout for httr request when running R CMD check

1 message · Ayala Hernandez, Rafael

#
Dear all,

Thanks a lot for your replies. These have been really helpful for solving the issue with the examples run time.

I am also becoming interested in applying a similar solution for package tests.

I currently run tests with RUnit. Looking at testthat, I have seen tests can be skipped with skip_on_cran,
which seems to determine if tests are run on CRAN through the value of environment variable "NOT_CRAN"

Can I safely assume that NOT_CRAN will be "false" on CRAN machines?

Thanks a lot in advance

Best wishes,

Rafa