R Quandl library behind corporate firewall / proxy

I'm new to the Quandl package for R and am trying to use it at work. Unfortunately, I am forced to work behind a corporate firewall and must connect to the Internet through a proxy. I managed to get around this prior to using R to clean up the website or download files by simply installing RCurlOptions with my proxy, port, and username / password. However, this does not work for the Quandl package. He keeps giving me an error with the HTML source of the page, which is just McAfee saying the site is blocked. I also tried installing Quandl.curlopts using the list I created for RCurlOptions, but that didn't work either. It seems that even though Quandl is using getURL (), it doesn't want to read the Curl parameters I set earlier.

What is the problem and how can I fix it?

+3


source to share


1 answer


I figured out the answer to this question. The function Quandl

makes a call Quandl.api

, which in turn refers to the curl object. The problem was that my curl options were set as a list and were not what Quandle was looking for. To fix this, I had to use the following code:

opts <- list(proxy = 'my proxy', proxyusername='domain\\username', proxypassword='mypassword', proxyport=####)
curl <- getCurlHandle(.opts = opts)
Quandl.curlopts(curl)

      



This allowed me to make calls Quandl

without error.

Hope this helps someone else with this problem!

+5


source







All Articles