user2929151
user2929151

Reputation: 41

R error in connection to host

I have installed R 3.0.2 and package KEGGREST. While using it's command, I get the following error

Error in function (type, msg, asError = TRUE) : couldn't connect to host

I can very well install package from internet after using --internet2 option, which uses proxy details from Internet explorer.

Please help. Thanks in advance

Upvotes: 4

Views: 11820

Answers (1)

Yann Abraham
Yann Abraham

Reputation: 330

httr uses a different method to connect to the internet: you need to explicitly set the proxy using the following command:

set_config(use_proxy(url='your.proxy.url',port,username,password))

See

http://www.inside-r.org/packages/cran/httr/docs/use_proxy

Solution. How to install_github when there is a proxy

For more details

Upvotes: 6

Related Questions