-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRAN check failing #151
Comments
For the record, the current failure is ── Error ('test-download_ISO_data.R:15:3'): test data URL with ISO -- |
Jenny's inputs: I have lots of thoughts and strategies around this, but the TL;DR really is that I include skip_if_offline() in tests that should not run w/o internet access. One of the testing chapters in R Packages also has a lot of relevant content. Which basically boils down to some version of the above advice and some version of what you are already doing, in case that makes it feel better! And you can specify a host, which makes it feel (and maybe even be?) more authentic. I do that somewhere, but I guess not in the example above. |
Lluis: |
Nicholas: I wrote the rnassqs package, which is a wrapper around an API and benefited quite a lot from review by the Neal Richardson, the author of the httptest package. You might look at the test structure there for an example. The setup gets things going with mock API calls, and then the actual tests are mostly in test-request. Although the tests are a few years old so they may not match current best practices. |
Dear maintainer,
Please see the problems shown on
https://cran.r-project.org/web/checks/check_results_metajam.html.
Please correct before 2024-08-19 to safely retain your package on CRAN.
It seems we need to remind you of the CRAN policy:
'Packages which use Internet resources should fail gracefully with an informative message
if the resource is not available or has changed (and not give a check warning nor error).'
This needs correction whether or not the resource recovers.
The CRAN Team
The text was updated successfully, but these errors were encountered: