Skip to contents

Returns TRUE when xbioclim was compiled with GDAL and the native BioclimEngine tiled pipeline is available, FALSE otherwise.

Usage

has_gdal()

Value

Logical scalar: TRUE if GDAL is available, FALSE otherwise.

Details

Internally the function calls gdal_can_open with a dummy path and inspects whether the resulting error message indicates an absent GDAL build.

Examples

has_gdal()
#> Warning: GDAL Error 4: /tmp/RtmpRzND6Y/file31e624fc0d54.tif: No such file or directory
#> [1] TRUE