Closed adamhsparks closed 4 years ago
I looked at the documentation and it seems that you already did this, am I right?
Hah, maybe I did! I need to recheck. I thought I saw some tryCatch()
that ended in a stop()
function
Not sure what I saw, you're right though! Sorry for the false alarm
CRAN has a policy (which I don't agree with) that server response failures should fail "gracefully" without an error message. To me, I'd prefer the script to stop and give me an informative message as we've done in chirps. I know I have a collaborator who contacted me after I made this change as well because they were using a
tryCatch()
to wrap a function from bomrang and this broke that functionality.However, that's not what CRAN wants.
I've a
tryCatch()
function we can look at and discuss in bomrang that might be useful to refer to. It returns an invisibleNULL
if the server times out after checking network functionality and server responses, etc.https://github.com/ropensci/bomrang/blob/77f14342188ea1e48362eb0bfdb3c60dd9510ab4/R/internal_functions.R#L13
Others in rOpenSci or the reviewers might be good to consult with as well.