tests/testthat/helper-score-based-methods.R

# ──────────────────────────────────────────────────────────────────────────────
# Helper functions for tests
# ──────────────────────────────────────────────────────────────────────────────

ges_registry <- list(
  ges = list(fn = ges, engines = c("tetrad", "pcalg"))
)

ges_args <- function(engine) {
  if (engine == "pcalg") {
    list(score = "sem_bic", directed_as_undirected_knowledge = TRUE)
  } else {
    list(score = "sem_bic")
  }
}

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.