Install R packages behind a proxy

Highlighted
UserBird Dataiker
Dataiker
Install R packages behind a proxy
Jump to solution
install.packages(...) does not work, as the DSS server is behind a proxy and cannot connect directly to the internet.
0 Kudos
1 Solution

Accepted Solutions
jrouquie Dataiker
Dataiker
Re: Install R packages behind a proxy
Jump to solution
You need to tell R about the proxy, this way:


Sys.setenv("ftp_proxy"="http://fproxy.example.local:4242/")
Sys.setenv("http_proxy"="http://proxy.example.local:4242/")


Note that you might need to issue those commands in a fresh R session, before any install.package() attempt. Then install.package() should work.

View solution in original post

0 Kudos
1 Reply
jrouquie Dataiker
Dataiker
Re: Install R packages behind a proxy
Jump to solution
You need to tell R about the proxy, this way:


Sys.setenv("ftp_proxy"="http://fproxy.example.local:4242/")
Sys.setenv("http_proxy"="http://proxy.example.local:4242/")


Note that you might need to issue those commands in a fresh R session, before any install.package() attempt. Then install.package() should work.

View solution in original post

0 Kudos
Labels (2)