tests/testthat/test-ghg_flux.R

test_that("tidy_licor output existing file", {
  data <- tidy_licor(test_file("raw_n2o.xlsx"), gas = "n2o")
  expect_true(!is.null(data))
})

test_that("tidy_licor produces data with specific column names", {
  data <- tidy_licor(test_file("raw_n2o.xlsx"), gas = "n2o")
  column_names <- c("DATE", "TIME", "N2O", "date_time")
  expect_identical(column_names, names(data))
})

Try the aelab package in your browser

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

aelab documentation built on Sept. 11, 2024, 7:33 p.m.