tests/testthat/test-tar_cue.R

tar_test("tar_cue() works", {
  cue <- tar_cue(mode = "always")
  expect_equal(cue$mode, "always")
})

tar_test("tar_cue() takes only allowed modes", {
  expect_error(tar_cue(mode = "nope"))
})

Try the targets package in your browser

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

targets documentation built on Oct. 12, 2023, 5:07 p.m.