I have installed R to use RCall within Julia. Unfortunately, I am having trouble installing the R-packages that I need to use.
I have installed R at the directory C:\Users\12345\AppData\Local\Programs\R\
But when I try to install the package “ggplot2” I get the following message (Note: I get simillar messages for other packages):
install.packages(“ggplot2”)
┌ Warning: RCall.jl: Installing package into ‘C:/Users/12345/AppData/Local/R/win-library/4.2’
│ (as ‘lib’ is unspecified)
│ Warning in gzfile(file, “rb”) :
│ cannot open compressed file ‘C:\Users\12345\AppData\Local\Temp\RtmpCiAafS/repos_https%3A%2F%2Fmirrors.dotsrc.org%2Fcran%2Fsrc%2Fcontrib.rds’, probable reason ‘No such file or directory’
│ Warning in read.dcf(file = tmpf) :
│ cannot open compressed file ‘C:\Users\12345\AppData\Local\Temp\RtmpCiAafS\file1b8428ee6889’, probable reason ‘No such file or directory’
│ Warning: unable to access index for repository https://mirrors.dotsrc.org/cran/src/contrib:
│ cannot open the connection
│ Warning: package ‘ggplot2’ is not available for this version of R
I appears I need to specify a library. If that is what is wrong, how do I do that to make RCall work?