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 Oct. 17, 2024, 10:16 p.m.