Logger Rstudio To File


Is it possible to log the Viewer output of Rstudio to file when running multiple chains in parallel?

Thanks !

It is in tempdir(). It might get deleted after the run is done because we had complaints that they were consuming all of the disk space when calling stan many times.

Nice question @virgodi
@boogdri, can you more accurately describe where the temp directory is stored? Wondering if it’s possible to set up an independent process which scrapes from that location.

When R starts, it makes a random writable directory that is returned by tempdir(). I think there is an environmental variable that controls which parent directory is used.

I have implemented the inverse: I run Stan in a separate thread and read the log file to display a progress bar in Shiny:


Most code in server.R