Skip to contents

Returns the root directory the catalogue is built from. The default is the ABMI science share; override it with the sciSpatialR.spatial_root option or the SCISPATIALR_SPATIAL_ROOT environment variable, which is how you point the catalogue at a mirror, a mapped drive letter, or a local copy.

Usage

spatial_root(check = TRUE)

Arguments

check

Logical; if TRUE (default), error when the directory is unreachable.

Value

A length-one character path.

Examples

if (FALSE) { # \dontrun{
spatial_root()

options(sciSpatialR.spatial_root = "D:/spatial_data")
spatial_root()
} # }