tests/testthat/test-exist_param_xml.R

stics_version <- get_stics_versions_compat()$latest_version

context("Exist param ")

test_that("exist parameter", {
  expect_true(exist_param_xml("codetemp", stics_version = stics_version))
  expect_true(exist_param_xml("codegdh", stics_version = stics_version))
  expect_true(exist_param_xml("codephot", stics_version = stics_version))
  expect_warning(exist_param_xml("codexxx", stics_version = stics_version))
  expect_true(exist_param_xml("code_acti_reserve",
                              stics_version = stics_version))
})

Try the SticsRFiles package in your browser

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

SticsRFiles documentation built on Sept. 12, 2024, 7:41 a.m.