skardhamar / rga

R Google Analytics
187 stars 90 forks source link

Installation failed through proxy #29

Open amoyyean opened 10 years ago

amoyyean commented 10 years ago

Which web address and ports shall I request to unblock so that I can install rga successfully through a internal proxy?

My office computer is using proxy to connect to external network. I can install devtools package. I can download https://github.com/skardhamar/rga/archive/master.zip with a browser.

But when I ran install_github("rga", "skardhamar") in R console, it gave me " Downloading rga.zip from https://github.com/skardhamar/rga/archive/master.zip Error in function (type, msg, asError = TRUE) : couldn't connect to host "

I tried set_config(use_proxy ...) command with my own proxy, it didn't work due to SSL certificate problem.

WillemPaling commented 10 years ago

You can download the zip and use install_file() rather than install_github. It is quite likely that the proxy issues with re-emerge when you start using the tool though.

I've got around the corporate proxy by installing CNTLM and the using set_config to use the local proxy. Of course that only applies if you are behind an NTLM proxy.

amoyyean commented 10 years ago

Thank you, Willem.

I tried set_config(use_proxy ...) command with my internal network proxy address and credential. install_github command for rga package worked.