tests/testthat/test-spGetPlots.R

test_that("multiplication works", {

  # skip for now until alternative testing dataset is configured
  skip()

  # Set Up Data
  WYbhfn <- system.file("extdata",
                        "sp_data/WYbighorn_adminbnd.shp",
                        package = "FIESTA")

  # Run spGetPlots and expect snapshots
  WYbhdat <- spGetPlots(bnd = WYbhfn,
                        states = "Wyoming",
                        datsource = "datamart",
                        eval = "FIA",
                        eval_opts = eval_options(Cur = TRUE),
                        istree = FALSE)

  pltids <- WYbhdat$pltids
  spxy <- WYbhdat$spxy

  expect_snapshot(pltids)
  expect_snapshot(spxy)

})
USDAForestService/FIESTA documentation built on April 5, 2025, 4:13 a.m.