| searchGDALX | R Documentation |
Searches for an executable 'gdalinfo' and returns a normalized installations table plus best-effort lists of GDAL binaries ('gdal*') and python tools ('*.py') found alongside the detected 'gdalinfo'.
searchGDALX(MP = "default", quiet = TRUE)
MP |
Character. Search root. '"default"' expands to 'c("~","/opt","/usr/local","/usr")'. You may also pass a single directory (e.g. '"/usr"'). |
quiet |
Logical. If 'TRUE', suppress messages. |
This implementation is portable: it does NOT use GNU-only 'find' primaries such as '-readable', and it uses 'system2(..., args=...)' with proper token separation (no shell parsing assumptions).
A list with:
data.frame with columns 'binDir', 'baseDir', 'installation_type'.
list of data.frames (column 'gdal_bin') with detected GDAL binaries per installation.
list of data.frames (column 'gdal_py') with detected GDAL python tools per installation.
## Not run:
x <- searchGDALX()
x$gdalInstallations
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.