rasterTmpDir
. It is the same as that of the R tempdir but you can change it (for the current session) with rasterOptions(tmpdir=
.
To permanentely set any of these options, you can add them to /etc/Rprofile.site
. For example, to change the default directory used to save temporary files, add a line like this: options(rasterTmpDir='c:/temp/')
to that file. Beware: all raster (*.grd and *.gri) files in that folder will be deleted every time the raster package is loaded.
showOptions
shows the current options
saveOptions
attempts to save the current options (with the exception of the 'todisk' option) to the /etc/Rprofile.site
file to make them persistent (they will be set when starting a new R session).
clearOptions
resets the options to their default values.setOptions(format, overwrite, datatype, tmpdir, progress, timer, chunksize, todisk)
showOptions()
saveOptions()
clearOptions()
writeFormats
TRUE
, existing files will be overwrittendataType
TRUE
, the time it took to complete the function is printedFALSE
and should normally not be changed. If TRUE
, results are always written to disk, even if no filename is supplied (a temporary filename is used)format
sets global option rasterFiletype
. The option is ignored by a function if you pass format
as an argument to that function.
argument overwrite
sets global option rasterOverwrite
. The option is ignored by a function if you pass overwrite
as an argument to that function.
argument datatype
sets global option rasterDatatype
. The option is ignored by a function if you pass datatype
as an argument to that function.
argument tmpdir
sets global option rasterTmpDir
. See rasterTmpFile
argument progress
sets global option rasterProgress
. The option is ignored by a function if you pass progress
as an argument to that function.options
, rasterTmpFile