[Mitarbeiter.zoologie] downloading 'rethinking'

Belinda Kahnt belinda.kahnt at zoologie.uni-halle.de
Di Jan 25 17:04:12 CET 2022


Dear Patrycja,

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:
> example(stan_model, package = "rstan", run.dontrun = TRUE)
Loading required package: StanHeadersLoading required package:
ggplot2Fehler: 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

Anyone else experiencing the same issue?

Best,
Belinda





>>> "Patrycja" <patrycjaa.pluta at gmail.com> 01/24/22 5:41 PM >>>
Dear all,
 
I found a solution to my problem with the installation of ‘rethinking’. 
 
I got held back at: 
install.packages("jsonlite", type = "source")
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.
 
When installing ‘rethinking’ package I had to install shape manually. I
used:
install.packages(c("mvtnorm","loo","coda"),
repos="https://cloud.r-project.org/",dependencies=TRUE)
options(repos=c(getOption('repos'), rethinking='http://xcelab.net/R'))
install.packages('shape', dependencies = TRUE)
install.packages('rethinking',type='source')
 
I hope this helps someone.
 
Best
Patrycja
From: Mitarbeiter.zoologie
<mitarbeiter.zoologie-bounces at lists.uni-halle.de> On Behalf Of Antonella
Soro
Sent: Wednesday, January 19, 2022 5:28 PM
To: mitarbeiter.zoologie at lists.uni-halle.de
Subject: [Mitarbeiter.zoologie] downloading 'rethinking'


 
dear statistical re-thinkers,
 

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.

 

i have then tried this code:

 

install.packages(c("mvtnorm","loo","coda"),
repos="https://cloud.r-project.org/",dependencies=TRUE)

options(repos=c(getOption('repos'), rethinking='http://xcelab.net/R'))

install.packages('rethinking',type='source’)


 

which worked for me

 

hopefully you won’t have any problem with the installation of
'rethinking'. but please remember that, as the book said: “You should
install rstan first.”

 

have a good evening

 

antonella

 

 

 




-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.uni-halle.de/pipermail/mitarbeiter.zoologie/attachments/20220125/d8a50b4f/attachment.html>


Mehr Informationen über die Mailingliste Mitarbeiter.zoologie