Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
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. All raster files in that folder that are older than 24 hrs are deleted when 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,
maxmemory, todisk, setfileext, tolerance)
showOptions()
saveOptions()
clearOptions()
writeFormats
TRUE
, existing files will be overwrittendataType
rasterTmpFile
TRUE
, the time it took to complete the function is printedcanProcessInMemory
will return FALSE
FALSE
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)TRUE
. If TRUE
, the file extension will be changed when writing (if known for the file type). E.g. GTiff files will be saved with the .tif extensionoptions
, rasterTmpFile