tests/testthat/test-utilMWRyscale.R

test_that("log auto TRUE", {
  expect_true(utilMWRyscale(tst$accdat, param = 'E.coli'))
})

test_that("linear force FALSE", {
  expect_false(utilMWRyscale(tst$accdat, param = 'E.coli', yscl = 'linear'))
})

test_that("linear auto FALSE", {
  expect_false(utilMWRyscale(tst$accdat, param = 'DO'))
})

test_that("log force TRUE", {
  expect_true(utilMWRyscale(tst$accdat, param = 'DO', yscl = 'log'))
})

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.