test_that("TRUE", {
expect_true(isNumber(0)) # nolint
expect_true(isNumber(1L))
expect_true(isNumber(1.1))
})
test_that("FALSE", {
expect_false(isNumber(seq_len(2L)))
})
test_that("nullOk", {
expect_true(isNumber(NULL, nullOk = TRUE))
expect_false(isNumber(NULL, nullOk = FALSE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.