The raster library often saves temp files to the C: drive, and standard cleanup methods can fail for lengthy parallel processing jobs, causing the disk to fill up. Use this function to prevent that problem.
1 | clearTempFiles(tempdir = "C:/Users/matt_kling/AppData/Local/Temp", loop = F)
|
tempdir |
Character: full file path of the folder where temp files are stored. Will be searched recursively. |
loop |
Logical: should the function keep monitoring and deleting temp files indefinitely until the script is manually terminated? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.