tests/testthat/test-check-scalar-isVectorish.R

test_that("isVectorish", {
    expect_true(isVectorish(character()))
    expect_true(isVectorish(factor()))
    expect_true(isVectorish(integer()))
    expect_true(isVectorish(logical()))
    expect_true(isVectorish(S4Vectors::Rle()))
    expect_false(isVectorish(data.frame()))
    expect_false(isVectorish(matrix()))
    expect_false(isVectorish(S4Vectors::DataFrame()))
})
acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.