Comments (2)
So far the way to deal with proxy settings on MS Windows is kind of a hack:
- using
httr::GET()
alone fails with a timeout error. - proxy settings must be passed to
httr::GET()
. - proxy settings are found with
curl::ie_get_proxy_for_url()
, I think this only return something in MS Windows. - and then
httr::GET()
is called with those settings.
On the other hand install.packages()
(actually running download.file()
under the hood) uses a method
argument to handle the connection settings. On MS Windows this method is automatically set to wininet
, and that seems to take care of everything.
So ideally I'd like to use something similar with httr::GET()
without ressorting to curl::ie_get_proxy_for_url()
. But it looks like this method is specific of download.file()
and I don't really see how to use it with httr::GET()
...
from rgho.
Rather than that messy proxy script, I'd rather refactor everything with global options. So 1 option, rgho.http_prox
, that is either NULL
(no proxy) or parsed in a proxy config. Stop the madness.
from rgho.
Related Issues (20)
- Migrate from XML to json
- More informative error messages HOT 1
- Create rgho.R file
- Write tests
- Hide documentation of unexported functions
- Sort vignettes
- Use codecov
- Control get_gho arguments
- Memoise for a limited time
- Benchmark if get_who_data() memoisation is necessary HOT 2
- Document options and memoisation
- Do not memoise get_gho_data
- Report occurrences of faulty json
- Test fails when codes are added
- Refactor tests to be insensitive to GHO changes
- Rename functions in a more consistent manner
- Add methods for gho objects
- Print N option HOT 1
- Combine help files
- Cannot install rgho on R 3.4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rgho.