tests/testthat/test-loupe.R

test_that("TRUE is returned when equal", {
  expect_true(
    loupe(
      butterflycount$february,
      butterflycount$january,
      datetime_variable = "time"
    )
  )
})

test_that("FALSE is returned when NOT equal", {
  expect_false(
    loupe(
      butterflycount$march,
      butterflycount$february,
      datetime_variable = "time"
    )
  )
})

Try the butterfly package in your browser

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

butterfly documentation built on April 12, 2025, 9:10 a.m.