Call the 'qgis_process' command directly
qgis_run()
offers full access to 'qgis_process'. Run cat(qgis_run("--help")$stdout)
to get the command's help.
qgis_run(args = character(), ..., env = qgis_env(), path = qgis_path())
args
: Command-line arguments...
: Passed to processx::run()
.env
: A list()
of environment variables. Defaults to getOption("qgisprocess.env", list(QT_QPA_PLATFORM = "offscreen"))
.path
: A path to the 'qgis_process' executable. Defaults to qgis_path()
.A processx::run()
return value, i.e. a list with status
, stdout
, stderr
and timeout
elements.
processx_list <- qgis_run(args = "--help") cat(processx_list$stdout)
Other topics about programming or debugging utilities: qgis_result_status()
, qgis_tmp_file()
, qgis_unconfigure()
, qgis_using_json_input()
Other topics about configuring QGIS and qgisprocess: qgis_configure()
, qgis_enable_plugins()
Useful links