tests/testthat/test-import7500.R

test_that("works with co2fluxtent test files", {
  expect_snapshot(
    import7500(
      test_path("co2fluxtent/"),
      plotinfo = c(
        "date",
        "location",
        "time_of_day",
        "trial"
      )
    ) |>
      str(digits.d = 4, width = 100, strict.width = "cut")
  )
})

test_that("works with pftc5 test files", {
  expect_snapshot(
    import7500(
      test_path("pftc5/"),
      plotinfo = c(
        "site",
        "block",
        "date",
        "plot",
        "trial"
      )
    ) |>
      str(digits.d = 4, width = 100, strict.width = "cut")
  )
})

test_that("works with pftc7 test files", {
  expect_snapshot(
    import7500(
      test_path("pftc7/"),
      version = "post2023",
      plotinfo = FALSE
    ) |>
      str(digits.d = 4, width = 100, strict.width = "cut")
  )
})

Try the licoread package in your browser

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

licoread documentation built on Aug. 18, 2025, 5:17 p.m.