Short summary of the problem
Over the past couple of years, I have been developing an R package that has several functions that call pre-compiled Stan models (using the rstan sampling function). Recently I have been using some of these functions in a simulation study with computations being done on several different Windows computers. I soon realized that large numbers of randomly named folders (with names like RtmpIB8N2A) were being left behind in the AppData\Local\Temp, even when everything terminated correctly and R was exited normally. The folders contain one or two dll files.
Is this expected behavior? Is there an easy way to force cleanup while the simulation is running?
I am using R version 3.6.2 and rstan version 2.19.2.
code_to_run_your_model(if_applicable)
If possible, add also code to simulate data or attach a (subset of) the dataset you work with.
Don’t forget to add relevant tags to your topic (top right of this form) especially for application area. Delete this text before posting your question :-) Thx!
If your question relates to installation please provide the following information:
- Operating System
- RStan Version
- Output of
writeLines(readLines(file.path(Sys.getenv("HOME"), ".R/Makevars")))
- Output of
devtools::session_info("rstan")
If you are reporting a bug (thank you!) please use the issue tracker (github.com/stan-dev/rstan/issues) instead of the forums.
Looking forward to your topic!