The function check that GDAL is installed and updated to the minimum required version (2.1.2).
check_gdal(abort = TRUE, gdal_path = NULL, force = FALSE, full_scan = FALSE)
abort | Logical parameter: if TRUE (default), the function aborts in case no GDAL installation is found; if FALSE, a warning is shown and FALSE is returned. |
---|---|
gdal_path | (optional) Character: the path in which GDAL must be searched in. If NULL (default), search is performed in the whole file system. |
force | (optional) Logical: if TRUE, install even if it is already
installed (default is FALSE). Notice that, defining |
full_scan | (optional) Logical: in Linux and MacOS, if |
Logical (invisible): TRUE in case the installation is ok, FALSE if GDAL is missing and abort=FALSE (otherwise, the function stops).
License: GPL 3.0
# \donttest{ # Use function check_gdal()#>#> [1] "/usr/bin/gdalinfo"# }