1

In Rstudio, I tried to run remotes::install_github("PPBDS/primer.data") in the console to download that package, and I got 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

I'm using a new mac with macOS Big Sur version 11.0.1, and I had just installed R and Rstudio. This command never gave me an error like this on my Windows machine, so what's causing the issue?

11
  • no way of knowing... is that the entire error message?
    – hobbs
    Jun 21, 2021 at 5:54
  • My guess is that you're missing some library involved in downloading the files (like curl?). Jun 21, 2021 at 5:54
  • @hobbs I mean, I guess the whole thing is: Downloading GitHub repo PPBDS/primer.data@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/PPBDS/primer.data/tarball/HEAD' failed
    – KLG
    Jun 21, 2021 at 5:55
  • @RomanLuštrik I only needed the remotes package and rtools40 when I was using my Windows machine. Is there something similar to rtools40 for mac? I couldn't find it online
    – KLG
    Jun 21, 2021 at 5:57
  • 2
    This issue is not specific to your system. I am experiencing the same issue with the specific package. So that said, the long "work around" would be to: 1) clone the repo to your pc. 2) Open rstudio. 3) use devtools::install('path to package clone'). 4) Open an issue on their package page, describing the problem.
    – Oliver
    Jun 21, 2021 at 6:59

1 Answer 1

0

Update

This issue should be solved. Please use the normal command to try it out:

remotes::install_github("PPBDS/primer.data")

It turned out to be an indentation issue in the package DESCRIPTION file.

Original Answer

An issue has been opened about this problem. https://github.com/PPBDS/primer.data/issues/18

This problem happened because of the latest commit, we're still tracking down the specific problem.

For now, please use this command to install the primer.data package:

remotes::install_github("PPBDS/primer.data", ref = "24ac7f87e025b859a976fd6122f7c2ea8af5c713")

And follow the issue. After it's fixed, you can just remove and re-install with the intended command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.