saga_remove_tmpfiles: Removes temporary files created by Rsagacmd

View source: R/tempfiles.R

saga_remove_tmpfilesR Documentation

Removes temporary files created by Rsagacmd

Description

For convenience, functions in the Rsagacmd package create temporary files if any outputs for a SAGA-GIS tool are not specified as arguments. Temporary files in R are automatically removed at the end of each session. However, when dealing with raster data, these temporary files potentially can consume large amounts of disk space. These temporary files can be observed during a session by using the saga_show_tmpfiles function, and can be removed using the saga_remove_tmpfiles function. Note that this function also removes any accompanying files, i.e. the '.prj' and '.shx' files that may be written as part of writing a ESRI Shapefile '.shp' format

Usage

saga_remove_tmpfiles(h = 0)

Arguments

h

Remove temporary files that are older than h (in number of hours).

Value

Nothing is returned.

Examples

## Not run: 
# Remove all temporary files generated by Rsagacmd
saga_remove_tmpfiles(h = 0)

## End(Not run)

Rsagacmd documentation built on Oct. 16, 2023, 5:06 p.m.