tests/testthat/test-any-na.R

test_that("anyNA.nlist", {
  expect_false(anyNA(nlist()))
  expect_false(anyNA(nlist(x = 1)))
  expect_true(anyNA(nlist(x = 1, y = NA)))
})

test_that("anyNA.nlists", {
  expect_false(anyNA(nlists()))
  expect_false(anyNA(nlists(nlist(x = 1))))
  expect_true(anyNA(nlists(nlist(x = 1, y = NA))))
})

Try the nlist package in your browser

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

nlist documentation built on Sept. 5, 2021, 6:05 p.m.