Logger Rstudio To File


#1

Hi,

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

Thanks !


#2

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.


#3

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.


#4

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.


#5

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