check_gdal | R Documentation |
The function checks 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
Luigi Ranghetti, phD (2019)
L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473")}, URL: https://sen2r.ranghetti.info/.
## Not run:
check_gdal()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.