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

Switch to httr #2

Closed
antagomir opened this issue Oct 19, 2016 · 8 comments
Closed

Switch to httr #2

antagomir opened this issue Oct 19, 2016 · 8 comments
Milestone

Comments

@antagomir
Copy link
Member

rOpenSci instructions: For http requests we strongly recommend using httr over RCurl

@antagomir antagomir added this to the CRAN 2.0 milestone Oct 19, 2016
@vsaaristo
Copy link
Contributor

Apparently RCurl was built to use TLS v1.0. Getting rid of this dependency would make the package applicable also when a higher level of security (i.e. TLS v1.2) is required.

@pitkant
Copy link
Member

pitkant commented Apr 13, 2021

The current solution provided by @vsaaristo replaced RCurl-function with base-R functions to manipulate connections (url() ). This is smart enough to use WinINet functions under Windows and libcurl-functions under Linux and MacOS. It seems to be working well at the moment but I'm wondering if using httr would have its benefits under some circumstances.

However, httr seems to have its own problems when operating behind a firewall, see this issue in Eurostat-package for example: rOpenGov/eurostat#185

Since the package currently does not RCurl nor httr, should we be satisfied with using base R functions only and close this issue?

@antagomir
Copy link
Member Author

Ok to me unless there are other arguments.

@vsaaristo
Copy link
Contributor

I was wondering if a httr-based solution would perform any faster?

@pitkant
Copy link
Member

pitkant commented Apr 14, 2021

My understanding is that httr is essential if the API needs any kind of authentication, tokens or similar. Which we don't need as sotkanet does not currently require them. It's actually a plus in my books if we can avoid dependencies, but this should be re-evaluated if they start requiring those.

I don't know about speed but I don't think it's an issue here, end user's internet connection is probably more important in that regard.

@antagomir
Copy link
Member Author

I agree that avoiding dependencies is good unless clear improvements could be shown.

@pitkant
Copy link
Member

pitkant commented Jan 31, 2022

The package uses httr since commit 6a18fca

@pitkant
Copy link
Member

pitkant commented Feb 4, 2022

Using httr in newest CRAN release 0.9.79. If there are problems in any OS open a new issue

@pitkant pitkant closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants