raster (version 1.0.4)

rasterTmpFile: Temporary files

Description

Functions in the raster package create temporary files if the values of an output RasterLayer cannot be stored in memory (ram). This can happen when no filename is provided to a function and in functions where you cannot provide a filename (e.g. when using 'raster algebra'). Temporary files are automatically removed at the start of each session. During a session you can use showTmpFiles to see what is there and removeTmpFiles to delete all the temporary files. rasterTmpFile returns a temporary filename. These can be useful when developing your own functions.

Usage

rasterTmpFile()
showTmpFiles()
removeTmpFiles()

Arguments

Value

  • rasterTmpFile returns a temporary file name (for use in functions) showTmpFiles returns the names (.grd only) of the files in the temp directory removeTmpFiles returns nothing

Details

The default path where the temporary files are stored is returned by showOptions(); you can change it (for the current session) with setOptions.

See Also

setOptions, showOptions, tempfile