clearTempFiles: Delete unused raster temp files

Description Usage Arguments

View source: R/data.R

Description

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.

Usage

1
clearTempFiles(tempdir = "C:/Users/matt_kling/AppData/Local/Temp", loop = F)

Arguments

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?


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.