tests/testthat/test_secchi.R

## vim:textwidth=80:expandtab:shiftwidth=4:softtabstop=4
context("secchi")
test_that("secchi has correct form", {
          data("secchi", package="ocedata")
          expect_true(is.data.frame(secchi))
          expect_equal(4, sum(c("latitude", "longitude", "depth", "time") %in% names(secchi)))
})

Try the ocedata package in your browser

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

ocedata documentation built on Aug. 19, 2022, 5:23 p.m.