theoryforge: Systematic Theory Development

Provides a reproducible workflow for building, developing and testing scientific theories represented as versioned, machine-checkable objects. Functions read and validate theory objects, score them against a versioned rigour checklist, screen constructs for redundancy, derive the conditional independencies a causal theory implies, appraise amendments as progressive, degenerating or neutral, write preregistration and audit documents, compile 'lavaan' model syntax, simulate the construct network, map a theory onto the themes of a literature corpus and write diagram intermediate representations. A 'Python' package of the same name offers the same functions. Both follow one specification, so they produce the same verdicts and the same diagram intermediate representations.

Version: 0.7.0
Depends: R (≥ 4.1.0)
Imports: jsonlite, stats, tools, utils, yaml (≥ 2.3.8)
Suggests: testthat (≥ 3.1.7), knitr, rmarkdown, curl, dagitty, ggm, DiagrammeR, DiagrammeRsvg, htmltools, lavaan, Matrix, spelling
Published: 2026-11-22
DOI: 10.32614/CRAN.package.theoryforge
Author: Pablo Bernabeu ORCID iD [aut, cre]
Maintainer: Pablo Bernabeu <pcbernabeu at gmail.com>
BugReports: https://github.com/pablobernabeu/theoryforge/issues
License: MIT + file LICENSE
URL: https://github.com/pablobernabeu/theoryforge, https://pablobernabeu.github.io/theoryforge/r/
NeedsCompilation: no
Language: en-GB
Citation: theoryforge citation info
Materials: README, NEWS
CRAN checks: theoryforge results

Documentation:

Reference manual: theoryforge.html , theoryforge.pdf
Vignettes: Building, checking and diagramming a theory (source, R code)

Downloads:

Package source: theoryforge_0.7.0.tar.gz
Windows binaries: r-devel: theoryforge_0.7.0.zip, r-release: theoryforge_0.6.0.zip, r-oldrel: theoryforge_0.6.0.zip
macOS binaries: r-release (arm64): theoryforge_0.7.0.tgz, r-oldrel (arm64): theoryforge_0.7.0.tgz, r-release (x86_64): theoryforge_0.7.0.tgz, r-oldrel (x86_64): theoryforge_0.7.0.tgz
Old sources: theoryforge archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=theoryforge to link to this page.