Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

saga_remove_tmpfiles

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

Linking R with the Open-Source 'SAGA-GIS' Software

v0.1.0
GPL-3
Authors
Steven Pawley [aut, cre]
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.