Latent Dirichlet Allocation Using 'tidyverse' Conventions
Overview
Implements an algorithm for Latent Dirichlet Allocation (LDA), Blei et al. (2003) https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf, using style conventions from the 'tidyverse', Wickham et al. (2019)doi:10.21105/joss.01686, and 'tidymodels', Kuhn et al.https://tidymodels.github.io/model-implementation-principles/. Fitting is done via 'warpLDA', a Metropolis-Hastings sampler, Chen et al. (2016) doi:10.48550/arXiv.1510.08628. Also implements several novel features for LDA such as guided models and transfer learning.
- **Links against
libatomicwhere the compiler needs it.** RcppThread's thread pool keeps each worker's loop range in an over-alignedstd::atomic. clang treats an over-aligned atomic as not lock-free and emits a call into libatomic, which was not being linked, so the shared object failed to load on CRAN's r-devel-linux-x86_64-debian-clang after that machine moved to LLVM 23. A newconfigurescript probes the construct and adds-latomiconly on toolchains that require it. This is a build fix: no user-visible change, and no change to results.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-16
- ERROR12 OK, 1 ERROR2026-09-05
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 6 earlier changesHide 6 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-04-10
- ERROR13 OK, 1 ERROR2026-04-09
- OK14 OK2026-03-10
Documentation
- Help pages
- 31 (21 internal)includes a package overview page
- Examples that run
- 25%2 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 75%
- Documented parameters
- 100%
- Return-value docs
- 75%
- Help pages citing references
- 3%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
Commits over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/tommyjones/tidylda on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-08-18Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 41 crediting it in the message
- Claude Opus 541 commits · Aug to Sep 2026
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.1.1Latest
- 0.1.02026-08-28 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.0.72025-11-14 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2024-04-22
- 0.0.52024-04-22 · diff ↗
- archivedRemoved from CRAN2024-04-20issues were not corrected in time
- 0.0.42023-12-01 · diff ↗
- 0.0.3
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.0.22021-12-08 · diff ↗
- 0.0.12021-07-19
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-07-19
- Total releases
- 8 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 200 KB / 2 files
- Download size
- 629 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tidylda")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-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.