Cmdstanr & docker?

Hi!

I was wondering recently if cmdstanr can possibly prefix all the commands by a custom string before executing. What I would like to do is to have the cmdstan installation inside a docker container and then use docker exec prefixes to fire off compilation and execution of stan models inside the container which has volumes mounted such that results end up one the host system….and all that controlled by a cmdstanr running on the host.

Is that possible? Have others done that already?

Sebastian

Should be easy to try it out. In what folder would you run this command? In the current folder of the R session?

Good question. We will have to share as a volume some parts of the hosts file system. We can start by making that the current r working directory.