Open lsaravia opened 1 year ago
Shooting from the hip: the combination of 'C++ involved' and 'hangs or crashes' in conjunction with a VM or container is most often related to a lack of memory. Can you try the same installation commands, and test example, in a normal machine? It may just be that the (free, if I am not mistaken) binder resources are limited in scope.
So the solution would be to create a docker image with rstan
and cmdstanr
already compiled.
Yes relying on binaries removes the constraint of small system while building.
It does not remove the constraint of a small system when running. Binder sessions, free as they are, may not be suitable for all stan applications if and when those involve C++ compilations.
I used the template to create a binder repository
https://github.com/lsaravia/binder-rethinking
in the Install.R file
install.packages(c("StanHeaders","rstan"),type="source")
or
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
in both cases the package seems to be well installed but when I test the installation using:
Here binder virtual machine hangs
A similar thing happens when I also install
cmdstanr
I think that could be the same problem.