tests/testthat/tests-empty_formula.R

test_that("form_to_chunks correctly parses when none of the edges have formulae", {
  expect_error({
    theorytools::simulate_data(dagitty::dagitty("x -> y"))
  }, NA)
})

Try the theorytools package in your browser

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

theorytools documentation built on Aug. 8, 2025, 6:43 p.m.