/usr/share/doc/r-cran-checkmate/tests/testthat/test_checkScalarNA.r is in r-cran-checkmate 1.6.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | context("checkScalarNA")
test_that("checkScalarNA", {
expect_true(testScalarNA(NA))
expect_true(testScalarNA(NA_real_))
expect_false(testScalarNA(1))
expect_false(testScalarNA(rep(NA_character_, 2)))
expect_error(assertScalarNA(integer(0)), "missing value")
})
|