tests/testthat/test-operators.R

test_that("%!in% works", {
  x <- 8:12
  out <- x %!in% 1:10

  expect_equal(out, c(FALSE, FALSE, FALSE, TRUE, TRUE))
})

Try the lvmisc package in your browser

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

lvmisc documentation built on April 5, 2021, 5:06 p.m.