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 necessary paths to successfully call 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)

jannes-m/RQGIS3 documentation built on Dec. 2, 2018, 12:17 p.m.