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

2020-12-01 Thread Ayala Hernandez, Rafael
-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

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

2020-11-30 Thread Ben Bolker
  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

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

2020-11-30 Thread Henrik Bengtsson
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

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

2020-11-30 Thread Jeff Newmiller
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

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

2020-11-30 Thread Ayala Hernandez, Rafael
Dear all, My package openSkies includes a set of functions to retrieve information from the OpenSky API. The examples for these functions can, on rare occassions, take anomously longer times to complete than usually because of issues on the API side. I have already included a timeout parameter