tests/testthat/test-tar_eval.R

targets::tar_test("tar_eval()", {
  values <- list(
    value1 = c(1L, 2L, 3L),
    value2 = c(4L, 5L, 6L)
  )
  out <- unlist(tar_eval(value1 + value2, values = values))
  expect_equal(out, c(5L, 7L, 9L))
})

Try the tarchetypes package in your browser

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

tarchetypes documentation built on Oct. 4, 2023, 5:08 p.m.