I think there is some interesting following up here. @jimhester is there a way to clean the tmpdir during the session?
Here is the idea. Doing something like list.files('mydir') %>% map(., ~read_csv(.x))
creates issues because when reading hundreds of different gz files, the tmp files accumulate until they reach the disk limit.
I know I can use gc() during the session to clean the environment of unused objects in memory, but is there the equivalent (callable in a loop) that cleans the tmp environment as well?
Thanks!!!!