Skip to content
Prev 6335 / 12125 Next

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

Don't test against a live website for most of your testing... use recorded or simulated input. If your package functional interface doesn't allow for that, then re-factor it so it does.

For those tests that actually have to interact with the live website, only run them if you know you are not on CRAN. The testthat package has support for this if you don't want to roll your own.
On November 30, 2020 10:45:01 AM PST, "Ayala Hernandez, Rafael" <r.ayala14 at imperial.ac.uk> wrote: