# Dani Larranaga # 2024-01-25 # installing the `rethinking` package: # FIRST YOU NEED TO INSTALL R-TOOLS: https://cran.r-project.org/bin/windows/Rtools/ # *If you need additional help: https://cran.r-project.org/bin/windows/Rtools/rtools40.html * # NEXT YOU NEED TO INSTALL `cmdstanr`: (See: https://mc-stan.org/cmdstanr/ for help) install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) # Finally you can install the `rethinking` package: # *More details for all steps are at https://github.com/rmcelreath/rethinking * install.packages(c("coda","mvtnorm","devtools","loo","dagitty","shape")) devtools::install_github("rmcelreath/rethinking")