tests/testthat/test_data.R

test_that("data validity", {
    items <- pRolocdata()$results[, "Item"]
    e <- environment()
    for (it in items) {
        data(list = it, envir = e)
        expect_true(validObject(get(it, envir = e)))
    }
})
lgatto/pRolocdata documentation built on Nov. 27, 2024, 12:12 a.m.