cmdstanr::install_cmdstan() compilation terminated

https://posit.cloud/content/5050367

I use these two statements to install cmdstanr package and cmdstan in a new project:

install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
cmdstanr::install_cmdstan()

when the latter is excuted, the following error message appeared:

g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [make/program:27: stan/src/stan/model/model_header.hpp.gch] Error 1
make: *** Waiting for unfinished jobs....
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [make/program:14: src/cmdstan/main.o] Error 1

I would like to know how can I get cmdstan working on Posit Cloud...

The cloud instance appears to run out of memory with the default 1GB. If you have a paid account, try increasing the limit. On a free account I can't think of an easy workaround.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.