tests/testthat/test-readMWRcens.R

test_that("Checking readMWRcens output format", {
  result <- suppressWarnings(readMWRcens(tst$censpth))
  expect_s3_class(result, 'tbl_df')
})

test_that("Checking column length from readMWRcens", {
  result <- suppressWarnings(ncol(readMWRcens(tst$censpth)))
  expect_equal(result, 2)
})

Try the MassWateR package in your browser

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

MassWateR documentation built on June 8, 2025, 11:20 a.m.