rmcelreath / rethinking

Statistical Rethinking course and book package
2.14k stars 603 forks source link

cannot install rethinking #416

Closed newcomer-bio closed 8 months ago

newcomer-bio commented 8 months ago

Hello I'm using RStudio. I tried to install rstan and rethinking as below:

Sys.setenv(DOWNLOAD_STATIC_LIBV8 = 1) install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE) install.packages(c("coda","mvtnorm","devtools","loo","dagitty","shape")) devtools::install_github("rmcelreath/rethinking")

It looks rstan was installed. However, an error message popped up every time, removing rethinking. See below: ERROR: dependency 'cmdstanr' is not available for package 'rethinking'

Can you help resolve this issue? Thank you!

rmcelreath commented 8 months ago

Follow the instructions: https://github.com/rmcelreath/rethinking#installation