tests/testthat/test-keepattr.R

stics_version <- get_stics_versions_compat()$latest_version

workspace <- get_examples_path(file_type = "sti", stics_version = stics_version)
situations <- SticsRFiles::get_usms_list(file = file.path(
  workspace,
  "usms.xml"
))
sim <- SticsRFiles::get_sim(workspace = workspace, usm = situations)

test_that("cropr_simulation attribute is kept", {
  expect_s3_class(sim, "cropr_simulation")
})

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.