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)
  )
})

Try the causact package in your browser

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

causact documentation built on Sept. 8, 2023, 5:46 p.m.