tests/testthat/test-summarize_temp.R

test_that("summary function works", {
  s <- summarize_temp(data = idaho, dates = date, temperature = temp_c)
  expect_s3_class(s, "data.frame")
  expect_identical(class(s$date), "Date")
  expect_equal(nrow(s), 1826)
})

Try the hatchR package in your browser

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

hatchR documentation built on April 3, 2025, 7:54 p.m.