tests/testthat/test-tar_poll.R

tar_test("tar_poll()", {
  skip_cran()
  tar_script(tar_target(x, 1))
  tar_make(callr_function = NULL, reporter = "silent")
  tar_poll(interval = 0.001, timeout = 0.25)
  expect_true(TRUE)
})

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.