tests/testthat/test-subset.R

test_that("subset works", {
  h <- rtide::harmonics
  expect_equal(
    subset(h, h$Station$Station[2])$Station,
    h$Station[2, , drop = FALSE]
  )
})

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.