tests/testthat/test-datasets.R

test_that("bundled datasets can be loaded", {
  skip_if_not_installed("plsdepot")
  for (ds in c("carscomplete", "carsmissing", "cornell", "linnerud", "ropes", "vehicles")) {
    expect_silent(data(list = ds, package = "plsdepot", envir = new.env()))
  }
})

Try the plsdepot package in your browser

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

plsdepot documentation built on March 24, 2026, 9:07 a.m.