What do I do with the download

I am trying to download tidyverse fro my school class and i keep getting this, what should i do?
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Packages which are only available in source form, and may need compilation of
C/C++/Fortran: ‘fs’ ‘dplyr’ ‘haven’ ‘readr’ ‘readxl’ ‘tidyr’
Do you want to attempt to install these from sources? (Yes/no/cancel)

1 Like

The simpler thing to do would be to answer "no" to that question, that would install binary versions of those packages that are a little older but much easier to install.

When I answer no nothing happens. It doesn't come up in my packages. Where would I find it?

Can you show the whole message you get? You are not providing enough information

When i answer no

install.packages("dplyr")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Package which is only available in source form, and may need compilation of C/C++/Fortran:
‘dplyr’
Do you want to attempt to install these from sources? (Yes/no/cancel) no

when i answer yes
The downloaded source packages are in
‘/private/var/folders/h8/w1fcrj2n5dn7st3ywyprkxqc0000gn/T/RtmprfIe4C/downloaded_packages’
This is what is located at the bottom

Try selecting another CRAN repository apparently RStudio's CRAN repository is not up to date yet and doesn't have a binary version for dplyr

Hi Dez!

I normally use R on Windows, but I have a Macbook sitting around and I tried re-installing dplyr and got exactly the same errors/behavior as you, so it's not just you. To expand on what andresrcs recommended, I was able to resolve the error by specifying a particular CRAN mirror as an additional argument to install.packages(). Here's what I ran:

install.packages("dplyr", repos = "http://archive.linux.duke.edu/cran/")

If that particular mirror doesn't work for you for some reason, you can get a full list here so you can try others:

https://cran.r-project.org/mirrors.html

Remember to load dplyr after installing using library(dplyr). Also take a look at the very helpful dplyr cheatsheet here:

Good luck with your class!

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