Skip to content
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

httr equivalent to curl::has_internet #562

Closed
boshek opened this issue Jan 4, 2019 · 1 comment
Closed

httr equivalent to curl::has_internet #562

boshek opened this issue Jan 4, 2019 · 1 comment
Labels
feature a feature request or enhancement

Comments

@boshek
Copy link

boshek commented Jan 4, 2019

Such an amazing and comprehensive package that really does almost everything. Thank you for developing this.

One thing - currently (AFAIK) httr does not offer any functions that check if the user actually has access to the internet; checking for the internet is not part of a httr workflow. This is potentially problematic as 492 packages on CRAN import on httr and it seems likely that many of them are not following this recent revision to the CRAN policies:

Packages which use Internet resources should fail gracefully with an informative message if the resource is not available (and not give a check warning nor error).

The best way that I know to currently meet the above CRAN requirement is with curl::has_internet(). I am curious, if you would consider re-exporting that function or provide similar functionality in another way?

I realize that curl is already imported by httr but I think explicitly including a function like this would provide a useful component of the general httr workflow.

@hadley hadley added the feature a feature request or enhancement label Apr 3, 2020
@hadley
Copy link
Member

hadley commented Oct 31, 2023

httr has been superseded in favour of httr2, so is no longer under active development. If this problem is still important to you in httr2, I'd suggest filing an issue offer there 😄. Thanks for using httr!

@hadley hadley closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants