I am creating multiple sessions in OpenCPU that produces some decently sized files (MB range). These files are stored on disk and accumulate over time. The disk on my system runs out after creating too many sessions over a short time. Once the disk is full,t he following error is returned when trying to run a new session:
Failed to create tempdir /tmp/RtmpLaEI3K/ocpu-temp/x0bcd653371. Check directory permissions.
Is there a way to delete sessions when I no longer need the files so that the disk won't fill up? I'm currently running OpenCPU in standalone mode by executing the below R script:
install.packages("opencpu",repos = "http://cran.us.r-project.org")
library("MyCustomProject")
ocpu_start_app("MyCustomProject")
I was unable to find anything in the OpenCPU API docs for deleting sessions.