<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">dear statistical re-thinkers,<div class=""><br class=""></div><div class="">i have tried to download the package ‘rethinking’, which we need for going through the statistical rethinking book, by using the instructions in the book, but i got several errors.</div><div class=""><br class=""></div><div class="">i have then tried this code:</div><div class=""><br class=""></div><div class=""><div class="">install.packages(c("mvtnorm","loo","coda"), repos="<a href="https://cloud.r-project.org/" class="">https://cloud.r-project.org/</a>",dependencies=TRUE)</div><div class="">options(repos=c(getOption('repos'), rethinking='<a href="http://xcelab.net/R" class="">http://xcelab.net/R</a>'))</div><div class="">install.packages('rethinking',type='source’)</div></div><div class=""><br class=""></div><div class="">which worked for me</div><div class=""><br class=""></div><div class="">hopefully you won’t have any problem with the installation of 'rethinking'. but please remember that, as the book said: “<span style="font-size: 11pt; font-family: MinionPro-Regular-Identity-H;" class="">You should install </span><span style="font-size: 9pt; font-family: SourceCodePro-Regular-Identity-H;" class="">rstan </span><span style="font-size: 11pt; font-family: MinionPro-Regular-Identity-H;" class="">first.</span>”</div><div class=""><br class=""></div><div class="">have a good evening</div><div class=""><br class=""></div><div class="">antonella</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>