Install problems on MAC

I am trying to download dplyr in rstudio. I have a mac and I am using R 3.6.3
When I click install this pops up
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)
When I say no nothing happens but when I say yes it downloads but it downloads to a folder in my mac. When I open the folder i can see dpylr as a file almost. I need to get this download for class and professor is also confused as to why this is happening.

1 Like

This is a temporary problem with the R repository today, 2020-03-26 11:52 PDT. On MAC OS, to compile from source you need XCode installed from the app store (free) and to enable the command line utility from the terminal

xcode-select --install

There's no guarantee that will work, because of Apple's non-standard compiler. If it doesn't the first time, it won't the second.

Hi @dez1, just in case, another thing to try would be to open the R application directly (not RStudio), install there, then close, and then open RStudio.

when I do this it tells me that they are located in a file. they wont show up in R studio

Could you share screenshots of what you're seeing?

File is possibly in the normal /tmp location
Update: nope, for me it was in

/var/folders/vw/p54wdfm95lq9wf8jkwxg_qpw0000gp/T//RtmptAcGfR/downloaded_packages

This worked for me:
install.packages("dplyr", repo = 'https://mac.R-project.org')

1 Like

Hi, and welcome!

As of 2020-03-26 20:22 PDS, things seem to be back to normal, but it's good to file this away for future reference.

Dear all,
I seem to have a similar problem since yesterday but with ggplot2 and isobande. When trying to install the tidyverse I get this:

install.packages('tidyverse')
also installing the dependencies ‘isoband’, ‘ggplot2’

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: ‘isoband’
Do you want to attempt to install these from sources? (Yes/no/cancel)

Attempts to install form source then fail ....

I'd massively appreciate any help. I have the newest version of R (version 3.6.3) on my mashine.

Greetings from social isolation in Vienna!

1 Like

There was a glitch yesterday in the CRAN repo, that was fixed. Try the main repo is working now. BTW: source often fails on MAC, due to Apple’s non-standard compiler. If it doesn’t work the first time, it will continue to fail

1 Like

Thank youn very much for the fast reply! My fragile workaround is to re-install packages in R base and not RStudio (cumbersome) and picking a different mirror than the RStudio one.
Seems to work for now ... but the whole mac compiler problem will require some tinkering.

1 Like

Great. St. Simon Utbanek of the R Core Team takes from us the brain damage of editing the source to compile binaries for us. Packages generally get done 7-10 days. Not all compilation from source fails. I always try once

1 Like