tests/testthat/test-plotDAG.R

context("plotDAG")

el <- generate_fixed_edgeList()
sbp <- generate_fixed_sparsebnPath()
sbf <- generate_fixed_sparsebnFit()

test_that("plotDAG runs without errors", {
    expect_error(plotDAG(el), NA)
    expect_error(plotDAG(sbf), NA)
    expect_error(plotDAG(sbp), NA)
})

Try the sparsebn package in your browser

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

sparsebn documentation built on Sept. 13, 2020, 5:10 p.m.