These functions create temporary files that can be used
in calls to qgis_run_algorithm()
or elsewhere. These
files are created in a special temporary directory
(qgis_tmp_base()
) that should be periodically cleaned up
using qgis_clean_tmp()
. You can set your preferred
vector and/or raster file extension using
options(qgisprocess.tmp_vector_ext = "...")
and/or
options(qgisprocess.tmp_raster_ext = "...")
, respectively.
See also
Other topics about programming or debugging utilities:
qgis_result_status()
,
qgis_run()
,
qgis_unconfigure()
,
qgis_using_json_input()
Examples
qgis_tmp_base()
#> [1] "/tmp/Rtmp7nb1k0/file2b044d88ac6c"
qgis_tmp_file(".csv")
#> [1] "/tmp/Rtmp7nb1k0/file2b044d88ac6c/file2b0418aea70b.csv"
qgis_tmp_vector()
#> [1] "/tmp/Rtmp7nb1k0/file2b044d88ac6c/file2b0471619b70.gpkg"
qgis_tmp_raster()
#> [1] "/tmp/Rtmp7nb1k0/file2b044d88ac6c/file2b0469917c8a.tif"