Validates a ruleset and adds it to the session registry, alongside the
built-in rulesets shipped in inst/rulesets/. Registering the same
id@version again is a no-op if its content is identical and an error
otherwise: publish a new version instead.
Arguments
- ruleset
A ruleset, see
bg_ruleset(). A list read from JSON is validated the same way.
Examples
bg_register_ruleset(bg_ruleset("lab.empty", "1.0.0"))
bg_rulesets()
#> id version title origin
#> 1 bayesgrove.workflow 1.0.0 Bayesian workflow builtin
#> 2 lab.empty 1.0.0 <NA> session
#> digest
#> 1 1d9496979c3d78184ac461fda74562610f3fd48925322be5778460f97f18ab2b
#> 2 507c9f3f5eb68e310410b90cd65225aeef25a3e17fd669711a772895620150a5