Last chance! 50% off unlimited learning
Sale ends in
Set the GDAL
warning level or get a data.frame
with the available GDAL drivers (file formats), or get the GDAL version (if warn=NA
and drivers=FALSE
, the default.
GDAL
is the software library that terra builds on to read and write spatial data and for some raster data processing.
gdal(warn=NA, drivers=FALSE)
ignored if NA
. Otherwise, the value should be an integer between 1 and 4 representing the level of GDAL warnings and errors that are passed to R. 1 = warnings and errors; 2 = errors only (recoverable errors as a warning); 3 = irrecoverable errors only; 4 = ignore all errors and warnings. The default setting is 3
logical. If TRUE
a data.frame with the raster and vector data formats that are available.
character
describe
for file-level metadata "GDALinfo"
# NOT RUN {
gdal()
gdal(2)
head(gdal(drivers=TRUE))
# }
Run the code above in your browser using DataLab