terraOptions: Options

Description Usage Arguments Details Examples

View source: R/options.R

Description

Class and methods for showing and setting general options for terra.

Usage

1

Arguments

...

option names and values (see Details). Or missing, to show the current options

Details

The following options are available.

memfrac - value between 0.1 and 0.9 (larger values give a warning). The fraction of RAM that may be used by the program.

tempdir - directory where temporary files are written. The default what is returned by tempdir().

datatype - default data type. See writeRaster

todisk - logical. If TRUE write all raster data to disk (temp file if no file name is specified). For debugging.

progress - non-negative integer. A progress bar is shown if the number of chunks in which the data is processed is larger than this number. No progress bar is shown if the value is zero

verbose - logical. If TRUE debugging info is printed for some functions

Examples

1
2
3
4
terraOptions()
terraOptions(memfrac=0.5, tempdir = "c:/temp")
terraOptions(progress=10)
terraOptions()

Example output

terra version 0.9.8
memfrac   : 0.6
tempdir   : /work/tmp/tmp/RtmpUmYMS9
datatype  : FLT4S
progress  : 3
todisk    : FALSE
verbose   : FALSE
memfrac   : 0.5
tempdir   : c:/temp
datatype  : FLT4S
progress  : 10
todisk    : FALSE
verbose   : FALSE

terra documentation built on Oct. 11, 2021, 9:09 a.m.