FAIR Theory Construction
Overview
An integrated suite of tools for creating, maintaining, and reusing FAIR (Findable, Accessible, Interoperable, Reusable) theories. Designed to support transparent and collaborative theory development, the package enables users to formalize theories, track changes with version control, assess pre-empirical coherence, and derive testable hypotheses. Aligning with open science principles and workflows, 'theorytools' facilitates the systematic improvement of theoretical frameworks and enhances their discoverability and usability.
- Fix issue raised by Prof. Brian Ripley: download_theory() examples fail if no internet.
- Add support for Python functions
- Add download_huggingface() to download models from huggingface
- Add get_embeddings() to get vector embeddings using huggingface model
- Add code() to code qualitative text entries with support of cosine similarity or string distance
- Add add_level() for recursive coding of qualitative text entries
- Add similarity_stringdist() to calculate similarity between character vectors based on string distance
- Add similarity_cosine() to calculate cosine similarity between vector embeddings, see get_embeddings()
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- NOTE12 OK, 1 NOTE2026-10-01
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 3 earlier changesHide 3 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 22
- Examples that run
- 82%14 run in a plain check · 3 never run
- Exported functions with examples
- 89%
- Documented parameters
- 98%
- Return-value docs
- 94%
- Help pages citing references
- 9%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/cjvanlissa/theorytools on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-07 · The repository has a site deploy workflow
pkgdown site last built 2026-10-07
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-01-28Pull request: opened by its own accountCommits: 3 by its own account
Dependencies
Installing theorytools adds 142 packages (66 with compiled code, 126 MB of source tarballs). Heaviest: stringi 11 MB, tidySEM 9.5 MB, MplusAutomation 7.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.3Latest2026-02-07 · current release · diff ↗ ·
added 6 exports
add_level, code, download_huggingface, get_embeddings, similarity_cosine, similarity_stringdist - 0.1.2
- 0.1.12025-06-23 · diff ↗ ·
added 8 exports
add_significance, add_to_pkgdown, derive_formula, download_theory, filter_conditional_independencies, select_controls, simulate_data, use_webex_vignette - RR 4.5.0 released · 2025-04-11
- 0.1.02025-01-14
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-01-14
- Total releases
- 4 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 58 KB / 2 files
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("theorytools")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.