tests/testthat/test-get-usage.R

context("get_usage")

test_that("get_usage() yields correct output", {
  testthat::skip_on_cran()
  
  expect_output(get_usage(alg = "qgis:polygoncentroids", intern = FALSE))
  
  expect_is(
    get_usage(alg = "qgis:polygoncentroids", intern = TRUE),
    "character"
  )
})

Try the RQGIS package in your browser

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

RQGIS documentation built on May 2, 2019, 8:23 a.m.