qgis_run function

Call the 'qgis_process' command directly

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())

Arguments

  • 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().

Returns

A processx::run() return value, i.e. a list with status, stdout, stderr and timeout elements.

Examples

processx_list <- qgis_run(args = "--help") cat(processx_list$stdout)

See Also

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()