open_app: Open a QGIS application

Description Usage Arguments Value Note Author(s) Examples

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)

RQGIS documentation built on May 2, 2019, 8:23 a.m.