You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CRAN Team requested to review our compliance with this policy. My current understanding on their issue is that ping() error should not produce a query function error so stop() should be removed from all of these functions. They asked us to correct this before 2022-06-11.
The text was updated successfully, but these errors were encountered:
I think from the wording they only care about "failing gracefully" for tests, examples, and vignettes—otherwise automated tests and stuff don't work. It doesn't sound like they explicitly have a problem with a function erroring for a user when the API is down.
But honestly, I don't know anywhere where we aren't meeting this guideline. Vignette is pre-compiled, all the examples are wrapped in donttest{} (I think?) and the tests all get skipped when the API is down.
The cir_img() example was wrapped in donttest. When they ran the example, this line produced an error because the API was down: if (!ping_service("cir")) stop(webchem_message("service_down")). However, since this was wrapped in donttest, this should have exited without any error.
I think having dontrun everywhere is the way to go, what do you think?
CRAN Team requested to review our compliance with this policy. My current understanding on their issue is that
ping()
error should not produce a query function error sostop()
should be removed from all of these functions. They asked us to correct this before 2022-06-11.The text was updated successfully, but these errors were encountered: