tests/testthat/test_isScalarNA.R

context("isScalarNA")

test_that("isScalarNA", {
  expect_true(isScalarNA(NA))
  expect_false(isScalarNA(1))
  expect_false(isScalarNA(iris))
  expect_false(isScalarNA(NULL))
  expect_false(isScalarNA("NA"))
})

Try the BBmisc package in your browser

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

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.