tests/testthat/test-readMWRresults.R

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

test_that("Checking row length from readMWRresults", {
  result <- suppressWarnings(nrow(readMWRresults(tst$respth)))
  expect_equal(result, 571)
})

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.