tests/testthat/test-datasets.R

test_that("datasets (if any) load successfully", {
  items <- tryCatch(utils::data(package = "robustfa")$results[, "Item"], error = function(e) character())
  for (d in items) {
    expect_error(utils::data(list = d, package = "robustfa"), NA)
  }
})

Try the robustfa package in your browser

Any scripts or data that you put into this service are public.

robustfa documentation built on Sept. 13, 2025, 1:09 a.m.