tests/testthat/test-are.R

test_that("are is an appropriate task dataset", {
  withr::local_envvar(VITALS_LOG_DIR = withr::local_tempdir())
  tsk <- Task$new(
    dataset = are,
    name = "The R Eval",
    solver = function(...) list(...),
    scorer = function(...) list(...)
  )
  expect_true(R6::is.R6(tsk))
})

Try the vitals package in your browser

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

vitals documentation built on June 24, 2025, 9:08 a.m.