terra (version 0.3-7)

tmpFiles: Temporary files

Description

List and optionally remove temporary files created by the terra package. These files are created when an output SpatRaster may be too large to store in memory (RAM). This can happen when no filename is provided to a function and in functions where you cannot provide a filename.

Temporary files are automatically removed at the end of each session that ends normally. You can use tmpFiles to see the files in the current sessions, from other (perhaps old) sessions, and remove all the temporary files.

Usage

tmpFiles(old=FALSE, remove=FALSE)

Arguments

old

logical. If TRUE, temporary files from other (possibly aborted) sessions are included

remove

logical. If TRUE, temporary files are removed

Value

character

See Also

rasterOptions, tempfile

Examples

Run this code
# NOT RUN {
tmpFiles()
# }

Run the code above in your browser using DataLab