qgis_detect_windows_paths: Detect QGIS installations that provide the 'qgis_process'...

View source: R/qgis-detect.R

qgis_detect_windows_pathsR Documentation

Detect QGIS installations that provide the 'qgis_process' command

Description

Discovers existing 'qgis_process' executables on the system and returns their filepath. Only available for Windows and macOS systems.

Usage

qgis_detect_windows_paths(drive_letter = strsplit(R.home(), ":")[[1]][1])

qgis_detect_macos_paths()

Arguments

drive_letter

The drive letter on which to search. By default, this is the same drive letter as the R executable.

Value

A character vector of possible paths to the 'qgis_process' executable.

Note

These functions do not verify whether the discovered 'qgis_process' executables successfully run. You can run qgis_path(query = TRUE, quiet = FALSE) to discover and cache the first 'qgis_process' in the list that works.

See Also

qgis_configure(), qgis_path()

Examples

if (.Platform$OS.type == "windows") qgis_detect_windows_paths()
if (Sys.info()["sysname"] == "Darwin") qgis_detect_macos_paths()


qgisprocess documentation built on Aug. 17, 2023, 5:14 p.m.