Skip to contents

Seeds schema_version = "1.1" and a first provenance entry {step:"1", action:"tf_theory", detail:<id>}.

Usage

tf_theory(id, title, maturity = "building", theory_form = "network")

Arguments

id

Theory id.

title

Human-readable title.

maturity

Maturity stage, one of "draft", "building" (the default), "developing" or "testing". At "draft", the gate of tf_check() is advisory.

theory_form

Theory form, one of "variance", "network" (the default), "typology" or "process". No score depends on it.

Value

A theory object (named list).

Details

The builders do not check field values. tf_validate() reports a value outside its enum, except that it checks the formal-model type, an evidence entry's direction and a test block's sided only with full = TRUE.

Examples

tf_theory("demo-1", "A demonstration theory")
#> $schema_version
#> [1] "1.1"
#> 
#> $id
#> [1] "demo-1"
#> 
#> $title
#> [1] "A demonstration theory"
#> 
#> $maturity
#> [1] "building"
#> 
#> $theory_form
#> [1] "network"
#> 
#> $provenance
#> $provenance[[1]]
#> $provenance[[1]]$step
#> [1] "1"
#> 
#> $provenance[[1]]$action
#> [1] "tf_theory"
#> 
#> $provenance[[1]]$detail
#> [1] "demo-1"
#> 
#> 
#>