open_app: Open a QGIS application

Description Usage Arguments Value Note Author(s) Examples

View source: R/processing.R

Description

open_app first sets all the correct paths to the QGIS Python binary, and secondly opens a QGIS application while importing the most common Python modules.

Usage

1
open_app(qgis_env = set_env())

Arguments

qgis_env

Environment settings containing all the paths to run the QGIS API. For more information, refer to set_env(). Basically, the function defines a few new environment variables which should not interfere with other settings.

Value

The function enables a 'tunnel' to the Python QGIS API.

Note

Please note that the function changes your environment settings via base::Sys.getenv() which is necessary to run the QGIS Python API.

Author(s)

Jannes Muenchow

Examples

1
2
3
4
## Not run: 
open_app()

## End(Not run)

r-spatial/RQGIS documentation built on April 24, 2020, 7:37 p.m.