Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prediction package needs github install #3

Closed
AaronRendahl opened this issue May 3, 2024 · 2 comments
Closed

prediction package needs github install #3

AaronRendahl opened this issue May 3, 2024 · 2 comments

Comments

@AaronRendahl
Copy link

When installing github_pkgs, I got an error with the prediction package

> github_pkgs <- c("leeper/margins", "fsolt/dotwhisker")
> for (p in github_pkgs) remotes::install_github(p)
Downloading GitHub repo leeper/margins@HEAD
Installing 1 packages: prediction
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-x86_64/contrib/4.4/prediction_0.3.14.tgz'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/bin/macosx/big-sur-x86_64/contrib/4.4/prediction_0.3.14.tgz'

Adding it to the list of github_pkgs succeeds

github_pkgs <- c("leeper/prediction", "leeper/margins", "fsolt/dotwhisker")
@bbolker
Copy link
Owner

bbolker commented May 3, 2024

Hmm, that's odd. I don't see any version of prediction at https://cran.rstudio.com/bin/macosx/big-sur-x86_64/contrib/4.4/. I assume that's because it was archived, and was restored recently (although the CRAN date is 2024-04-24, the CRAN MacOS binaries still haven't been rebuilt ...)

This also depends on how install_github() is looking for dependencies, i.e. whether it is using type="binary" (or "mac.binary") or allowing type = "both"; in the latter case I would think it ought to fall back to installing from source. But who knows ...

thanks!

@bbolker bbolker closed this as completed May 3, 2024
@AaronRendahl
Copy link
Author

Huh, who knows indeed. Thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants