Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Problems with rtools when installing RSTAN #20

Open
ca-signorelli opened this issue Nov 15, 2021 · 3 comments
Open

Problems with rtools when installing RSTAN #20

ca-signorelli opened this issue Nov 15, 2021 · 3 comments

Comments

@ca-signorelli
Copy link

Hei,
I am not able to install any of the programmes in the RSTAN family. It seems to be a problem with rtools, but it is not solved by deleting and reinstalling rtools40.

rtools

@ca-signorelli
Copy link
Author

The Stan developer team tried to sort this out, but could not find the solution.
They directed me to this site.
Best regards
Christian A

@gwd999
Copy link

gwd999 commented Jan 12, 2022

The Stan developer team tried to sort this out, but could not find the solution.
They directed me to this site.

Just curious because I sometimes run into RStan issues myself - but the error message is reporting problems with jsonlite? Have you looked a bit into that problem so far?

I do vaguely remember some similar points popping up for me as well - but judging from the current state of my package library of my R-4.0.5 installation ...

R --arch  'x64'
[R] 69.37 MB >
[R] 69.37 MB > require(jsonlite)
Loading required package: jsonlite
[R] 188.91 MB > ?jsonlite
starting httpd help server ... done
[R] 191.60 MB > library(rstan)
Loading required package: StanHeaders
Loading required package: ggplot2
rstan (Version 2.21.3, GitRev: 2e1f913d3ca3)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
Do not specify '-march=native' in 'LOCAL_CPPFLAGS' or a Makevars file
[R] 198.20 MB > packageVersion("jsonlite")
[1] '1.7.2'
[R] 198.65 MB > packageVersion('rstan')
[1] '2.21.3'
[R] 198.90 MB >

which was build with Rtools40 - this seems to depend on your setup.

Do you maybe have something in your startup that loads (other) packages - loading packages from the tidyverse eg in your .Rprofile could have the effect that jsonlite updates (or installations) fail?

@pdbailey0
Copy link

I think this is the background here. From here it seems jsonlite is being used as an example package that can be compiled from source.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants