tests/testthat/test-gs.R

test_that("gs bnlearn algorithm run without error and return correct classes", {
  run_all_tests(
    alg_fun = gs,
    engine = "bnlearn",
    test = "fisher_z",
    alg_args = list(max.sx = 3, debug = FALSE, undirected = FALSE),
    suppress_warnings = TRUE
  )

  test_additional_test_or_score_args(
    alg_fun = gs,
    engine = "bnlearn",
    test = "mc_zf",
    test_args = list(B = 100)
  )
})

Try the causalDisco package in your browser

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

causalDisco documentation built on April 13, 2026, 5:06 p.m.