tests/testthat/test-dag_plot.R

test_that("dag plot creates graph", {
  df = data.frame(x = c(1:5),y = c(6:10))
  plotGr = df %>% dagp_plot()
  expect_type(plotGr, "list")
  testthat::expect_no_error(
    df %>% dagp_plot(densityPlot = TRUE)
  )
})
flyaflya/causact documentation built on Jan. 23, 2025, 2:57 a.m.