problem installing packages ggplot2, readxl, tidyr, dplyr for RStudio Version 1.3.1093 on MacOS10.13.6

Hello,

I have an old iMac still working fine and as a new R user, I have installed RStudio Version 1.3.1093 on my Mac. However when I want to install some packages such as ggplot2, readxl, tidyr, dplyr, I get the following warnings saying that the requested dependencies are not available anymore:

Warning in install.packages :
dependencies ‘gtable’, ‘scales’ are not available
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
impossible d'ouvrir l'URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES'

Any ideas on whether my problem can be solved?

Many thanks in advance

MY guess is that these packages should automatically install when you are installing the ones you want but this sometimes messes up.

Try

install.packages("tidyverse")

The packages you are installing are all included in the {tidyverse} mega-parkage.

If you get the same or similar messages just install each named package manually, that is

install.packages("gtable")
install.packages("scales")

Oh, welcome to the forum.

The repository path RStudio is using no longer exists, possibly because you are apparently running a rather old version of R. In RStudio, go to Tools > Global Options... > Packages and tell us what you see in the "Primary CRAN Repository" field. If it's not "Global (CDN) - RStudio", try picking that with the "Change..." button (should be top of the list) and see if things work more smoothly. It might require some nontrivial voodoo to get RStudio pointed at a repo for your version of R ... or you might need to try upgrading to a more recent R version.

Many thanks to both of you.
I have tried to update my R version to 4.2.3, which seems to be the appropriate version for MacOS high Sierra and it seems to work better. At least RStudio was able to find most of the packages I needed so far. Much appreciated!
Best regards

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.