<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Dear Belinda</p>
<p>I first got a similar problem running exactly the same line of
code but telling me that I miss a package named "cmd_rstan..."</p>
<p>Unfortunately, I cannot re-trace the exact steps, but as far as I
remember I re-started R/rechecked the PATH instructions/made sure
that the Renvironment did not get in my way (according to the
instructions on the github page to the package rethinking).</p>
<p>Hope this helps.</p>
<p>Best</p>
<p>Simon</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 25/01/2022 um 17:04 schrieb Belinda
Kahnt:<br>
</div>
<blockquote type="cite"
cite="mid:61F01F7C0200007D000584F8@gwia0.itz.uni-halle.de">
<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>
<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);">
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’:
.onLoad failed in loadNamespace() for 'rstan', details: call: get_rng(0)
error: Die Funktion 'Rcpp_precious_remove' wird nicht von Paket 'Rcpp' bereitgestellt
<font color="#000000">
Anyone else experiencing the same issue?
Best,
Belinda
</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" <a class="moz-txt-link-rfc2396E" href="mailto:patrycjaa.pluta@gmail.com"><patrycjaa.pluta@gmail.com></a>
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=<a class="moz-txt-link-rfc2396E" href="https://cloud.r-project.org/">"https://cloud.r-project.org/"</a>,dependencies=TRUE)</span></p>
<p class="MsoNormal">options(repos=c(getOption('repos'),
rethinking='<a class="moz-txt-link-freetext" href="http://xcelab.net/R">http://xcelab.net/R</a>'))</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
<a class="moz-txt-link-rfc2396E" href="mailto:mitarbeiter.zoologie-bounces@lists.uni-halle.de"><mitarbeiter.zoologie-bounces@lists.uni-halle.de></a>
<b>On Behalf Of </b>Antonella Soro<br>
<b>Sent:</b> Wednesday, January 19, 2022 5:28 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:mitarbeiter.zoologie@lists.uni-halle.de">mitarbeiter.zoologie@lists.uni-halle.de</a><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/"
moz-do-not-send="true" class="moz-txt-link-freetext">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"
moz-do-not-send="true" class="moz-txt-link-freetext">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>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Mitarbeiter.zoologie mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mitarbeiter.zoologie@lists.uni-halle.de">Mitarbeiter.zoologie@lists.uni-halle.de</a>
<a class="moz-txt-link-freetext" href="https://lists.uni-halle.de/cgi-bin/mailman/listinfo/mitarbeiter.zoologie">https://lists.uni-halle.de/cgi-bin/mailman/listinfo/mitarbeiter.zoologie</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
Simon Tragust
MLU Halle
General Zoology
Hoher Weg 8
06120 Halle (Saale)</div>
</body>
</html>