tests/testthat/test-qgis-run.R

test_that("qgis_run() has a successful fallback if path is NULL", {
  skip_if_not(has_qgis())

  qgisprocess_cache$path <- NULL
  qgisprocess_cache$version <- NULL

  expect_message(qgis_run(), "on the fly")
  expect_length(qgis_version(), 1L)

  # both qgis_version(query = TRUE) and qgis_path(query = TRUE) restore
  # the cache values:
  expect_false(is.null(qgisprocess_cache$version))
  expect_false(is.null(qgisprocess_cache$path))
})

Try the qgisprocess package in your browser

Any scripts or data that you put into this service are public.

qgisprocess documentation built on Sept. 11, 2024, 6:43 p.m.