tests/testthat/test-tide-height.R

test_that("tide_height works", {
  expect_error(chk::check_data(tide_height(),
    values = list(
      Station = "", DateTime = Sys.time(), TideHeight = 1
    ),
    nrow = 24,
    key = "DateTime",
    exclusive = TRUE,
    order = TRUE
  ), NA)

  expect_is(tide_height(stations = ".*"), "data.frame")
})

Try the rtide package in your browser

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

rtide documentation built on May 30, 2021, 1:07 a.m.