-devel en nombre de Ben
Bolker
Enviado: lunes, 30 de noviembre de 2020 20:59
Para: r-package-devel@r-project.org
Asunto: Re: [R-pkg-devel] Conditional timeout for httr request when running R
CMD check
***
This email originates from outside Imperial. Do not click on links and
as pointed out to me the last time I was struggling with similar
issues, if (interactive()) { ... } is another potential solution
On 11/30/20 2:48 PM, Henrik Bengtsson wrote:
The problem here was regarding user facing example():s, not package tests.
In order to keep a neat example for the us
The problem here was regarding user facing example():s, not package tests.
In order to keep a neat example for the user to play with, I'd
probably wrap the example code in a \donttest{} statement. Though, I
don't remember if CRAN tests with R CMD check --run-dontest, or not.
There's also \dontrun
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 o