tests/testthat/test_OMLTaskConnector.R

skip_on_cran()

test_that("Construct task from dict", {
  expect_r6(tsk("oml", task_id = 9), "Task")
})

test_that("Correct backend", {
  # id 31 is important, because otherwise we might get a DataBackendRename
  task = tsk("oml", task_id = 31, parquet = TRUE)
  expect_true(inherits(task$backend, "DataBackendDuckDB"))

  task = tsk("oml", task_id = 31, parquet = FALSE)
  expect_true(inherits(task$backend, "DataBackendDataTable"))
})

Try the mlr3oml package in your browser

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

mlr3oml documentation built on Aug. 26, 2025, 5:08 p.m.