<html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8"><META name="Author" content="GroupWise WebAccess"><style type="text/css"> 
body p 

        margin: 0px; 
}
</style></head><body style='font-family: Helvetica, Arial, sans-serif; font-size: 13px; '><div>Dear Patrycja,</div><div><br></div><div>thanks for that tip. I did not spot any error during the installing process (rstan and c-toolchain)  but when I test Stan with the example data (or just try to put it into the library) I always get the following error:</div><div><pre class="GGBOEFPDPVB" id="rstudio_console_output" style="font-family: "Lucida Console" , monospace;font-size: 13.3333px;outline: none;border: none;margin: 0.0px;line-height: 1.2;color: rgb(0,0,0);font-style: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0.0px;text-transform: none;widows: 2;word-spacing: 0.0px;"><span><span class="GGBOEFPDFWB ace_keyword" style="color: blue;white-space: pre;">> </span><span class="GGBOEFPDFVB ace_keyword" style="color: blue;">example(stan_model, package = "rstan", run.dontrun = TRUE)</span><span class="GGBOEFPDJVB  ace_constant" style="color: rgb(197,6,11);"><br>Loading required package: StanHeaders</span><span class="GGBOEFPDJVB  ace_constant" style="color: rgb(197,6,11);">Loading required package: ggplot2</span><span class="GGBOEFPDJVB  ace_constant" style="color: rgb(197,6,11);">Fehler: package or namespace load failed for ‘rstan’: <br>.onLoad failed in loadNamespace() for 'rstan', details:  call: get_rng(0)  <br>error: Die Funktion 'Rcpp_precious_remove' wird nicht von Paket 'Rcpp' bereitgestellt<br><font color="#000000"><br>Anyone else experiencing the same issue?<br><br>Best,<br>Belinda<br></font></span></span></pre></div><div id="GroupWiseSection_1643102096000_belinda.kahnt@zoologie.uni-halle.de_EBAD58800D9E0000986A776461663435_" class="GroupWiseMessageBody"><div><br></div><span> </span><span class="GroupwiseReplyHeader"><br><br>>>> "Patrycja" <patrycjaa.pluta@gmail.com> 01/24/22 5:41 PM >>><br></span><div class="WordSection1"><p class="MsoNormal">Dear all,</p><p class="MsoNormal"> </p><p class="MsoNormal">I found a solution to my problem with the installation of ‘rethinking’. </p><p class="MsoNormal"> </p><p class="MsoNormal">I got held back at: </p><p class="MsoNormal">install.packages("jsonlite", type = "source")</p><p class="MsoNormal">After getting an error running this line, I deleted my .RData file (in Documents folder) and deleted additional line of text that appeared in .Renviron. Then, jsonlite installation worked.</p><p class="MsoNormal"> </p><p class="MsoNormal">When installing ‘rethinking’ package I had to install shape manually. <span lang="PL">I used:</span></p><p class="MsoNormal"><span lang="PL">install.packages(c("mvtnorm","loo","coda"), repos="https://cloud.r-project.org/",dependencies=TRUE)</span></p><p class="MsoNormal">options(repos=c(getOption('repos'), rethinking='http://xcelab.net/R'))</p><p class="MsoNormal">install.packages('shape', dependencies = TRUE)</p><p class="MsoNormal">install.packages('rethinking',type='source')</p><p class="MsoNormal"> </p><p class="MsoNormal">I hope this helps someone.</p><p class="MsoNormal"> </p><p class="MsoNormal">Best</p><p class="MsoNormal">Patrycja</p><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> Mitarbeiter.zoologie <mitarbeiter.zoologie-bounces@lists.uni-halle.de> <b>On Behalf Of </b>Antonella Soro<br><b>Sent:</b> Wednesday, January 19, 2022 5:28 PM<br><b>To:</b> mitarbeiter.zoologie@lists.uni-halle.de<br><b>Subject:</b> [Mitarbeiter.zoologie] downloading 'rethinking'</p></div></div><p class="MsoNormal"> </p><p class="MsoNormal">dear statistical re-thinkers,</p><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">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.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">i have then tried this code:</p></div><div><p class="MsoNormal"> </p></div><div><div><p class="MsoNormal">install.packages(c("mvtnorm","loo","coda"), repos="<a href="https://cloud.r-project.org/">https://cloud.r-project.org/</a>",dependencies=TRUE)</p></div><div><p class="MsoNormal">options(repos=c(getOption('repos'), rethinking='<a href="http://xcelab.net/R">http://xcelab.net/R</a>'))</p></div><div><p class="MsoNormal">install.packages('rethinking',type='source’)</p></div></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">which worked for me</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">hopefully you won’t have any problem with the installation of 'rethinking'. but please remember that, as the book said: “<span style="font-family: MinionPro-Regular-Identity-H , serif;">You should install </span><span style="font-size: 9.0pt;">rstan </span><span style="font-family: MinionPro-Regular-Identity-H , serif;">first.</span>”</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">have a good evening</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">antonella</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div></div></div></body></html>