make_runner: Create a Custom Runner for a Causal Discovery Algorithm

View source: R/runners.R

make_runnerR Documentation

Create a Custom Runner for a Causal Discovery Algorithm

Description

[Experimental]

Constructs a runner function for a specific causal discovery engine and algorithm. This allows users to support new algorithms.

Usage

make_runner(engine, alg, test = NULL, alpha = NULL, score = NULL, ...)

Arguments

engine

Character. The engine to use. Options include "causalDisco", "pcalg", "bnlearn", "tetrad", or the name of any engine added via register_engine().

alg

Character. The algorithm name.

test

Optional. A test statistic to pass to the engine.

alpha

Optional. Significance level to pass to the engine.

score

Optional. A scoring function for score-based methods.

...

Additional arguments passed to the engine-specific runner.

Value

An object representing a configured runner for the chosen engine. The type depends on the engine.

See Also

Other Extending causalDisco: as_disco(), distribute_engine_args(), list_registered_engines(), list_registered_tetrad_algorithms(), make_method(), new_disco_method(), register_engine(), register_tetrad_algorithm(), reset_engine_registry(), reset_tetrad_alg_registry()


causalDisco documentation built on Nov. 17, 2026, 5:08 p.m.