I went here: R Interface to CmdStan • cmdstanr
and followed these instructions:
"To instead install the latest development version of the package from GitHub use
# install.packages("remotes")
remotes::install_github("stan-dev/cmdstanr")
"
It didn’t work! Here’s what happened:
> remotes::install_github("stan-dev/cmdstanr")
Using GitHub PAT from the git credential store.
Error: Failed to install 'cmdstanr' from GitHub:
cannot open URL 'https://api.github.com/repos/stan-dev/cmdstanr/commits/HEAD'
No big deal because I can just use the regular version (what the help page calls the “latest beta release”). But I guess it’s a problem that the development version isn’t working for me.
I’m doing all of this in RStudio, using R version 4.4.0.
I’m not sure, but perhaps it’s related to this? There has been some changes in repos, apparently:
What output do you get from:
sessionInfo(package="rstanarm")
Here’s what I get:
> remotes::install_github("stan-dev/cmdstanr")
Using GitHub PAT from the git credential store.
Error: Failed to install 'cmdstanr' from GitHub:
cannot open URL 'https://api.github.com/repos/stan-dev/cmdstanr/commits/HEAD'
> sessionInfo(package="rstanarm")
R version 4.4.0 (2024-04-24)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.5
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/New_York
tzcode source: internal
attached base packages:
character(0)
other attached packages:
[1] rstanarm_2.32.1
loaded via a namespace (and not attached):
[1] compiler_4.4.0 graphics_4.4.0 parallel_4.4.0 tools_4.4.0 utils_4.4.0 grDevices_4.4.0 remotes_2.5.0 stats_4.4.0
[9] datasets_4.4.0 methods_4.4.0 base_4.4.0
>