I have installed R in my Ubuntu (18.04) system and when I try to install a package I receive the following message (for example when trying to install dplyr
package):
> install.packages('dplyr')
Installing package into ‘/home/giwrikas/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning message:
package ‘dplyr’ is not available (for R version 4.0.2)
The same error appears with every package. Does anyone know how to solve that ?
It seems that the library is not writable and often appears the following message:
Would you like to use a personal library instead? (y/n) y
Would you like to create a personal library
~/R/pc-linux-gnu-library/3.2
to install packages into? (y/n) y
My R version is 4.0.2. The same R version works fine at windows.Thank you in advance
apt-cache policy r-base-dev
to the question. This looks strange, as the says that it needs R ≥3.2. Can you open cloud.r-project.org/src/contrib URL from web-browser?Rscript -e "install.packages('dplyr')"
from terminal and upload results to the pastebin too.