We installed R and RStudio Server in a Linux Red Hat server.
R version is 3.6.0.
RStudio Sever version is 1.2.5019.
Server is Linux Red Hat 7.7.
I have sterted an RStudio session in: ip:8787 and I tried to install a package:
install.packages("stringr")
Installing package into ‘/home/username/R/x86_64-redhat-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
library(stringr)
Error in library(stringr) : there is no package called ‘stringr’
To try to solve this issue, I have followed the instructions here:
So, I tried to install.packges in R (outside of RStudio) and I am getting the following error:
install.packages("stringr")
select CRAN 53
Warning: unable to access index for repository https://cran.rediris.es/src/contrib:
cannot open URL 'https://cran.rediris.es/src/contrib/PACKAGES'
Warning messages:
1: In download.file(url, destfile = f, quiet = TRUE) :
URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Couldn't connect to server'
2: package ‘stringr’ is not available (for R version 3.6.0)
library(stringr)
Error in library(stringr) : there is no package called ‘stringr’
Did anyone experience a similar problem before?
Does anyone know what can I do to solve this ussue and install.packages correctly in the Linux Red Hat server?
Thank you in advance.