tests/testthat/test-tar_workspace_download.R

tar_test("tar_workspace_download() on a local pipeline", {
  tar_script(tar_target(x, 1))
  tar_make(callr_function = NULL)
  expect_error(
    tar_workspace_download(x),
    class = "tar_condition_validate"
  )
})

Try the targets package in your browser

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

targets documentation built on April 12, 2025, 1:11 a.m.