On a macOS machine, I try to install a GitHub package primer.data
by running remotes::install_github("PPBDS/primer.data")
in Rstudio console and I get this error:
Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/PPBDS/primer.data/tarball/HEAD' failed
Why is this happening? I never had problems like this on my old Windows machine. I am able to install CRAN packages like tidyverse, remotes, and usethis just fine.
I also made this StackOverflow thread about the same problem if you want to check it out: macos - Why am I unable to use my Mac to download this R package from GitHub? - Stack Overflow