I’m getting strange libcurl errors on the dbhydroR pacakge during checks on CRAN/winbuilder that I can’t reproduce locally or on travis. All links turn up as invalid with “Could not resolve host”. Is there is an obvious fix I am missing?
Forgive me for asking the obvious, but is the website working? Can you make these calls via the command line or browser? Perhaps via a VPN at the CRAN locale?
the first time you submit a new pkg to cran they do check examples, but after that i think they dont really check - so you can change the setup on the 2nd submission onwards
i’d not run examples that do HTTP requests on CRAN, or if you do you could do something like i did in a recent new version of a package:
if (crul::ok("https://someurl.com")) { # returns a boolean
your_function(...)
}
Then examples won’t run if the site isn’t up/200
you don’t have to use crul, that’s just to demonstrate
This seems on purpose. If you go to https://www.uptrends.com/tools/uptime and fill out the url https://my.sfwmd.gov you can see that can only be reached from US locations.
@jsta Do you know anyone there? Maybe you can convince them to make the site avail. to non-US locations? Even if they won’t since the pkg is already on CRAN, you can just have no examples run and no tests run on CRAN. Do you already tell users they have to access it from a US IP address?
Yes, apparently their IT department set up a US IP restriction on purpose and the R package isn’t a high enough priority for them to remove it. Looks like the package is likely to come off CRAN.
The agency didn’t say. Maybe they think its a cost-cutting measure? I bet they have their hands full right now with the current hurricane nearly on top of them.
I don’t know if it’s official policy but the CRAN person I’m dealing with says they’re cancelling my submission because:
having URLs which the overwhelming majority of R users in this world cannot access is a bad idea
Ok, bummer. Yeah, seems too late since they know about the URLs. I imagine if examples/tests were changed to not run on CRAN could have gotten away with it