View source: R/qgis-function.R
qgis_function | R Documentation |
As opposed to qgis_run_algorithm()
, qgis_function()
creates a callable
function based on the argument metadata provided by qgis_get_argument_specs()
.
qgis_function(algorithm, ...)
algorithm |
A qualified algorithm name
(e.g., |
... |
Algorithm arguments.
These values are evaluated once and immediately, so you shouldn't
call |
The logic of qgis_function()
has been implemented in R package
qgis.
This package also provides the QGIS documentation of each processing
algorithm as corresponding R function documentation.
A function.
qgis_buffer <- qgis_function("native:buffer")
qgis_buffer(
system.file(
"longlake/longlake_depth.gpkg",
package = "qgisprocess"
),
DISTANCE = 10
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.