Infrastructure for Mediation Model Fitting and Extraction
- CRAN checks, method
Method
Checks and health
CRAN runs every current package through R CMD check on a set of machines and publishes a result for each one. The health shown on a package page comes from these results alone.
- Problems
- Notes alone never count against a package, but a warning, an error or a failure on any platform is a problem. Open CRAN deadlines are a fact of their own, shown as a clock after the mark, so the mark always says what the checks found.
- Checks only
- Health reflects CRAN's check results and nothing else. Even a package with no tests, no coverage or no recent release can have every platform OK.
- Once a day
- Results are collected once a day from files CRAN publishes. Each platform is one machine set-up, named by its R version, operating system, architecture and compiler, such as r-devel-linux-x86_64-fedora-clang.
- Platforms counted
- The 13 in 3 of 13 is the number of platform rows CRAN published for that package on the day of collection. The set of machines changes over time, so the number is not fixed, and a package missing from a platform counts as neither passing nor failing there.
- All OK13 platforms
- CRAN 30-day downloads, method
- 199−41% down on the 30 days before, the worse direction
- Dependent packages, method
Method
Reverse dependencies
Dependent packages are other packages that list this one under Depends, Imports or LinkingTo in their DESCRIPTION file. Those fields list the packages a package needs to install, so dependents break if this one is archived or broken.
- As declared
- The counts follow the declarations as written, not whether a package uses the other one when it runs.
- Suggests apart
- Packages that list this one only under Suggests install and run without it, and use it for tests, examples or an optional feature. They are counted as Suggested by, never among the dependents, and a package that also lists it under one of the three fields is a dependent and is not counted again.
- Zero
- Zero dependents means no current CRAN package declares a need for this one, though some may suggest it. On 26 Oct 2026, 19,530 of the 25,531 current CRAN packages had no dependent package.
- 01 more suggest it
- Test coverage, method
Method
Test coverage
Test coverage is measured by downloading each CRAN package's current source file, installing its dependencies, building it and running its tests under covr.
- Almost half of CRAN has no tests to run
- Only CRAN packages are measured. Many have no percentage, most often because the package has no tests, and that blank is a recorded outcome, not missing data.
- NOT_CRAN
- Tests run with NOT_CRAN=true, so tests that skip themselves on CRAN run here, and the figure can differ from what CRAN's own checks see.
- Current version only
- Only the current version is measured, and a new version on CRAN is measured again. Older rows are kept but never filled in later. This is one package's run.
- Never 0%
- On a package page three states stay apart: measured, no tests, and not measured. Neither of the last two is ever shown as 0%.
- 90%of lines run by tests
- Advisories, method
Method
Security advisories
Advisories come from the R Consortium advisory database, a community record of security problems in R packages, as OSV publishes it.
- The copy
- The record is read once a day. The data is published under the Apache License 2.0 and is credited on the advisories list.
- Box under the name
- Under the package's name, a box names any advisory that affects the current release, with its fix or that there is none.
- Ranges
- Advisories state ranges, such as from 0.9.12 up to but not including 1.8.8. Each range is checked against every version CRAN has published, using the version rules R itself uses, so a release that came out after the advisory was written is still caught by its range.
- Not the package
- The rating is for the library flaw itself, not for how exposed the R package is, and it is never added up into a figure for the package.
- None known
About
Method, About Method Licence figures come from the License field of each package's DESCRIPTION file, read the way R itself reads it. No licence file is opened.Licences
Provides S7-based infrastructure for fitting mediation models, extracting path coefficients, and performing bootstrap inference. Designed as a foundation package for the mediation analysis ecosystem, supporting 'probmed', 'RMediation', and 'medrobust' packages.
Full description
Provides S7-based infrastructure for fitting mediation models, extracting path coefficients, and performing bootstrap inference. Designed as a foundation package for the mediation analysis ecosystem, supporting 'probmed', 'RMediation', and 'medrobust' packages. Implements unified interfaces for model fitting across different engines (currently generalized linear models, with future support for mixed models and Bayesian methods), standardized extraction of mediation paths from various model types, and robust bootstrap inference methods. Mediation methods are described in MacKinnon, Lockwood and Williams (2004) <doi:10.1207/s15327906mbr3901_4>, Preacher and Hayes (2008) <doi:10.3758/brm.40.3.879>, Tofighi and MacKinnon (2011) <doi:10.3758/s13428-011-0076-x>, and VanderWeele (2014) <doi:10.1097/EDE.0000000000000121>.
- Maintainer
- Davood Tofighi
- Licence
- GPL (>= 3)
- Latest release
- 23 Jul 2026
- First release
- 18 Jun 2026 (first seen)
More details
- Releases
- 2
- Needs compilation
- No
- Needs R
- >= 4.1.0
- Config/Needs/website
- knitr, rmarkdown, quarto
- Config/roxygen2/version
- 8.0.0
- Config/testthat/edition
- 3
- Date
- 2026-07-20
- Language
- en-US
Subjects (1) Method, SubjectsMethod
Subjects and collections
Subjects are the site's own grouping of CRAN packages, found by clustering. Collections are sets of packages that communities declare, such as the tidyverse.
- Subjects
- Subjects are found by clustering the words of current CRAN packages and the packages they use. No one edits them by hand.
- Collections
- Collections are sets that communities declare, through a package that installs the set or an organization on GitHub. The site finds them by rules.
- Who made each
- Subjects are marked Site and collections Community. Subjects, collections and task views are never mixed in one list.
- The day of the data
- Subjects and collections were last worked out on 22 Oct 2026.
Cite
Package
Run in R for the authors' preferred citation:
citation("medfit")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
Balamuta, J. J. (2026). R Observatory: Metrics for medfit version 0.3.2 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040
About
From data release v2026-10-26, which the citation names so these numbers can be found later.
Health
All 13 check platforms pass.
r-devel-linux-x86_64-debian-clangThe unreleased R on Linux, x86_64, debian-clang
OK
- Version checked
- 0.3.2
- Time taken
- 83 s
r-devel-linux-x86_64-debian-gccThe unreleased R on Linux, x86_64, debian-gcc
OK
- Version checked
- 0.3.2
- Time taken
- 60 s
r-devel-linux-x86_64-fedora-clangThe unreleased R on Linux, x86_64, fedora-clang
OK
- Version checked
- 0.3.2
- Time taken
- 104 s
r-devel-linux-x86_64-fedora-gccThe unreleased R on Linux, x86_64, fedora-gcc
OK
- Version checked
- 0.3.2
- Time taken
- 54 s
r-devel-windows-x86_64The unreleased R on Windows, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 105 s
r-oldrel-macos-arm64The previous release of R on macOS, arm64
OK
- Version checked
- 0.3.2
- Time taken
- 31 s
r-oldrel-macos-x86_64The previous release of R on macOS, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 114 s
r-oldrel-windows-x86_64The previous release of R on Windows, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 124 s
r-patched-linux-x86_64The patched release of R on Linux, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 80 s
r-release-linux-x86_64The current release of R on Linux, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 79 s
r-release-macos-arm64The current release of R on macOS, arm64
OK
- Version checked
- 0.3.2
- Time taken
- 29 s
r-release-macos-x86_64The current release of R on macOS, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 115 s
r-release-windows-x86_64The current release of R on Windows, x86_64
OK
- Version checked
- 0.3.2
- Time taken
- 102 s
- 13 OK
Over time
No change since 5 Aug 2026
As a list (5)
| Changed | Worst status | OK | Notes | Warnings | Errors |
|---|---|---|---|---|---|
| 5 Aug 2026 | OK | 13 | 0 | 0 | 0 |
| 1 Aug 2026 | Note | 12 | 1 | 0 | 0 |
| 29 Jul 2026 | OK | 13 | 0 | 0 | 0 |
| 11 Jul 2026 | Note | 12 | 1 | 0 | 0 |
| 19 Jun 2026 | OK | 7 | 0 | 0 | 0 |
Since March 2026
Downloads
Method, Downloads Method Download figures count requests logged by each distribution channel. They are not counts of installs or of users, because each channel publishes its own totals and this site reads them.Downloads
- Total downloads in the last 30 days
- 207−43.9% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.
CRAN rank
22,830 of 26,529
CRAN
199 downloads in the last 30 days
- Rank
- 22,830 of 26,529
- Change
- −41% down on the 30 days before, the worse direction
It is in the total. Take it out
r2u
3 downloads in the last 30 days
- Rank
- 11,992 of 30,526
- Change
- −76.9% down on the 30 days before, the worse direction
It is in the total. Take it out
autoCRAN
5 downloads in the last 30 days
- Rank
- 10,269 of 29,130
- Change
- −73.7% down on the 30 days before, the worse direction
It is in the total. Take it out
The total is 207 downloads in the last 30 days. It is the sum of 3 channels: CRAN, r2u and autoCRAN.
Over time
Dependencies
Code
Method, Code Method Code metrics come from reading the released source of each package version. The package is never installed, loaded or run.Code metrics
- Functions
- 94
- Public exports
- 16
- Lines of R code
- 6,760
- Median complexity
- 2
Functions (94)
Size and composition
Lines by kind (16,296)
| Kind | Lines | Share |
|---|---|---|
| R code | 6,760 | 41% |
| Tests | 7,165 | 44% |
| Documentation | 2,371 | 15% |
Lines by language
| Language | Lines | Share |
|---|---|---|
| R | 13,925 | 86% |
| Rd | 2,333 | 14% |
| Markdown | 38 | 0.2% |
Languages are counted from file extensions.
- Files
- 82
- R functions
- 94
- Object systems
- S3: 6 methods, S7: 5 classes
Complexity
- Median
- 2
- Mean
- 4.38
- Highest
- 32
- Median lines per function
- 15
About complexity
Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.
Call graph figures
- R functions
- 94
- Calls
- 44
- Unconnected
- 56
- Groups
- 6
Growth (2 releases)
Release changes
Tests
The tests ran and coverage was measured.
- Lines run by tests
- 89.6%
- Expressions run by tests
- 88.8%
- Test cases
- 285
- Exports named in tests
- 100%
Coverage by file (11)
Coverage run
- Lines counted
- 2,411
- Lines the tests ran
- 2,161
- Tests passed
- Yes
- Measured with
- covr 3.6.5 on R 4.6.1
Test suite
- Has tests
- Yes
- Test frameworks
- testthat
- Test cases
- 285
- Lines of tests
- 7,165
- Test lines per line of code
- 1.06
Documentation
- Exports documented
- 100%
- Arguments documented
- 96.2%
- Return value documented
- 100%
- Help pages with examples
- 43.2%
- Examples run in checks
- 68.8%
Other documentation
- README
- No
- Release notes file
- No
- Help pages
- 37
- Lines of documentation
- 2,371
People
Method, People Method People on the site are the names packages give them in their DESCRIPTION files: authors from the author list, and the maintainer from the Maintainer field. Spellings of one name become one person only where the rules below allow it, and when in doubt the rules keep people apart.Author and maintainer identity
Repository
Method, figures by host Method Repository signals are the figures read from the source repository a package links to: stars, forks, issues, commits, releases and the time issues take to close. They are read from GitHub, GitLab and Codeberg.Repository signals
Data-Wise / medfit on github.com
- Stars
- 2+100% up on 30 days ago, the better direction
- Forks
- 1
- Open issues
- 3
- Last commit
- 26 Oct 2026
Activity
- Commits
- 799
- Open pull requests
- 1
- Tagged releases
- 16
- Latest tagged release
- v0.14.1, 26 Oct 2026
- In development
- Default branch at 0.14.0, ahead of CRAN 0.3.2 (checked 2026-10-25)
- Issues closed in
- 2 days (median)
- Pull requests closed in
- 0 days (median)
- Pull requests merged
- 98%
- Created
- 2 Dec 2025
- Licence file reads as
- –
Development practices (11)
| Kind | Found |
|---|---|
| Continuous integration | GitHub Actions, R CMD check workflow The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel |
| Docs source | pkgdown GitHub Pages site last deployed 2026-10-25 The repository has a site deploy workflow pkgdown site last built 2026-10-25 |
| Coverage | Coverage reporting (Codecov) |
| Reproducibility and dev environment | data-raw/ |
| CRAN release process | cran-comments.md |
| Automation and maintenance | Dependabot |
| Lint, format, editor | lintr, Lint workflow |
Method, repository practices Method Beta Each week a scan of the public source repository a package links to looks for the tools a maintainer has set up, and the Repository section lists the findings. Repositories on GitHub and GitLab are scanned.Repository practices
AI tools
Method, AI tools Method Beta What is found in a repository is not a measure of the code.AI tool findings
Tools
| Tool | First seen | Found | Commits by it | Commits crediting it |
|---|---|---|---|---|
| Claude Code | 2 Dec 2025 | Seen in the repository.claude.claude/agents.claude/skillsCLAUDE.mdNamed in .Rbuildignore.claudeCLAUDE.mdNamed in .gitignore.claudePull request it wrote: opened by a project member | 7 | 634 at least |
| Codex | 14 Oct 2026 | Named in .Rbuildignore.codex |
- Seen in the repository
- Named in .Rbuildignore
- Named in .gitignore
- Pull request
Shared conventions
AGENTS.md
Models
| Model | Context window | Commits | First commit | Last commit | Credit lines of |
|---|---|---|---|---|---|
| Claude Opus 5.5 | 1 at least | 19 Oct 2026 | 19 Oct 2026 | Claude Code | |
| Claude Opus 4.8 | 1M | 19 at least | 31 May 2026 | 31 May 2026 | Claude Code |
| Claude Sonnet 4.5 | 23 at least | 15 Dec 2025 | 20 Dec 2025 | Claude Code | |
| Claude Opus 4.5 | 14 at least | 14 Dec 2025 | 17 Dec 2025 | Claude Code |
History
Method, History Method Archived is built from CRAN's archive records, its list of check deadlines and Bioconductor's package records. Every figure is counted to 26 Oct 2026, the day the data was read.Packages leaving
- On CRAN
- Release