I am using:
- Ubuntu 15.04
- RStudio 0.99.486.
- R 3.1.2
- proxy network with authentication
The problem occurs when I open RStudio and try to install any package. Example:
install.packages("ggplot2")
I get the following error:
Installing package into ‘/home/eisti/R/x86_64-pc-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ggplot2’ is not available (for R version 3.1.2)`
I tried to follow steps from official support and I've seen this question and bunch of other things on Internet, but nothing helps me. BTW everything works fine on Windows.
Any help will be highly appreciated. Merci.
~/.Renviron
:http_proxy="http://user:password@proxy.com:port/"
. This will set the environment variable for your proxy each time you start R. See?Startup
. – amc Jun 14 '16 at 14:31