When I try to install cmdstanr, I get this:
> install.packages("cmdstanr", repos = c("
https://mc-stan.org/r-packages/
", getOption("repos")))
Warning in install.packages :
unable to access index for repository
https://mc-stan.org/r-packages/src/contrib
:
cannot open URL '
https://mc-stan.org/r-packages/src/contrib/PACKAGES
'
Warning in install.packages :
package 'cmdstanr' is not available for this version of R
Should I believe the second warning?
Ok, so apparent I first needed to install cmdstan using conda. And now I’ve activated stan-env. (stan-env) Gustavos-Air-5:~ gustavolacerda$ conda list cmdstan
# packages in environment at /Users/gustavolacerda/opt/anaconda3/envs/stan-env:
#
# Name Version Build Channel
cmdstan 2.29.1 h775853c_0 conda-forge
But the original error is still there. Maybe Rstudio needs to connect to the python environment?
- R version: 4.1.2 (2021-11-01)
- Operating System: macOS Mojave 10.14.6
- CmdStan Version: 2.29.1
- Compiler/Toolkit: conda