I created a basic instance in the Google Compute Engine that runs on Debian wheezy. My goal is to install R on an instance and access it remotely via a Jupyter / Ipython laptop.
The problem that I encountered is that after installing R 3.2.2. "Fire Safety" and I try to update the packages with update.packages(), I can’t do this, and I get a warning: unable to access index for repository https://cran.<rest of mirror address>This is regardless of which CRAN mirror I choose (18 mirror options), Similarly, if I try to install basic packages , for example jsonlite , using install.packages('jsonlite'), I get a similar error:
Warning: unable to access index for repository https://cran.cnr.Berkeley.edu/src/contrib
Warning message:
package ‘jsonlite’ is not available (for R version 3.2.2). Again, this error does not depend on the mirror I selected.
If this helps in the diagnosis, then how I install R, right after creating a new instance, it looks like this:
sudo apt-get update
sudo apt-get upgrade
sudo -i
echo "deb http://cran.r-project.org/bin/linux/debian wheezy-cran3/" > /etc/apt/sources.list.d/cran.list
apt-get update
apt-get upgrade
apt-get install r-base-core r-base-dev
Can anyone suggest what might cause a package update / installation problem?
source
share