r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
339 stars 153 forks source link

How to get a more informative stack trace from install_github()? #813

Open sorenwacker opened 1 month ago

sorenwacker commented 1 month ago
> install_github("LewisResearchGroup/digestR")
Downloading GitHub repo LewisResearchGroup/digestR@HEAD
── R CMD build ────────────────────────────────────────────────────────────────────────────────────
─  building ‘digestR_1.0.0.tar.gz’mation ...r/bq19zbjx0wvbr5gmvwypgb7431fw57/T/RtmpeocDou/remotes1476a6f69595f/LewisResearchGroup-digestR-69c5114/DESCRIPTION’ ...

Warning message:
In i.p(...) :
  installation of package ‘/var/folders/hr/bq19zbjx0wvbr5gmvwypgb7431fw57/T//RtmpeocDou/file1476a6d6aa51d/digestR_1.0.0.tar.gz’ had non-zero exit status

Trying to debug a package that I can install via GitHub actions, but for some reason it fails locally on a MacBook. The error only telle me that it failed, but not why. Is there a way to get more information ? I tried debug = TRUE, but that is not supported.

gaborcsardi commented 1 month ago

Try downloading the tarball or zip file from GitHub, extracting it and then calling R CMD build and R CMD INSTALL.