Bayesian Prior Elicitation, Diagnostics, and Regulatory Reporting
- CRAN checks, method
Method
Checks and health
CRAN runs every current package through
R CMD checkon 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
- 449+9.5% up on the 30 days before, the better direction
- Dependent packages, method
Method
Reverse dependencies
Dependent packages are other packages that list this one under
Depends,ImportsorLinkingToin theirDESCRIPTIONfile. 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
Suggestsinstall 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 28 Oct 2026, 19,572 of the 25,583 current CRAN packages had no dependent package.
- 0none 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%.
- 34%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 Licences
License field of each package's DESCRIPTION file, read the way R itself reads it. No licence file is opened.tools::analyze_license() and R's own licence database, as CRAN's checks read it.| is read, so one string can offer two families.
A toolkit for constructing, validating, and justifying Bayesian priors in clinical trial settings. Implements expert elicitation via quantile matching, the roulette method, and moment matching across six distribution families, linear and logarithmic expert pooling, meta-analytic-predictive (MAP) ...
Full description
A toolkit for constructing, validating, and justifying Bayesian priors in clinical trial settings. Implements expert elicitation via quantile matching, the roulette method, and moment matching across six distribution families, linear and logarithmic expert pooling, meta-analytic-predictive (MAP) priors derived from historical trials, prior-data conflict diagnostics including the Box p-value (computed from the exact prior predictive distribution where one has a closed form), an exploratory surprisal (S-value) companion to it, surprise index, information divergence, and Mahalanobis distance, sensitivity analyses with tornado and influence heatmap plots, sceptical, robust, and power priors, and automated prior justification reports. Includes a fully modular 'Shiny' application for interactive use. Methods based on O'Hagan et al. (2006, ISBN:9780470029886), Box (1980) <doi:10.2307/2982063>, Greenland (2023) <doi:10.1111/sjos.12625>, Oakley and O'Hagan (2010) <https://tonyohagan.co.uk/shelf/>, Schmidli et al. (2014) <doi:10.1111/biom.12242>, Neuenschwander et al. (2010) <doi:10.1177/1740774509356002>, Roever et al. (2021) <doi:10.1002/jrsm.1475>, Ibrahim and Chen (2000) <doi:10.1214/ss/1009212673>, Spiegelhalter et al. (1994) <doi:10.2307/2983527>.
- Maintainer
- Ndoh Penn
- Licence
- GPL-3
- Latest release
- 20 Oct 2026
- First release
- 3 Jun 2026
More details
- Releases
- 5
- Needs compilation
- No
- Needs R
- >= 4.1.0
- Config/Needs/vignettes
- knitr, rmarkdown, rstanarm, brms
- Config/testthat/edition
- 3
- Language
- en-GB
- RoxygenNote
- 7.3.3
- SystemRequirements
- Quarto CLI (>= 1.5, https://quarto.org)
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("bayprior")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 bayprior version 0.5.0 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About
From data release v2026-10-28, 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.5.0
- Time taken
- 308 s
r-devel-linux-x86_64-debian-gccThe unreleased R on Linux, x86_64, debian-gcc
OK
- Version checked
- 0.5.0
- Time taken
- 268 s
r-devel-linux-x86_64-fedora-clangThe unreleased R on Linux, x86_64, fedora-clang
OK
- Version checked
- 0.5.0
- Time taken
- 181 s
r-devel-linux-x86_64-fedora-gccThe unreleased R on Linux, x86_64, fedora-gcc
OK
- Version checked
- 0.5.0
- Time taken
- 226 s
r-devel-windows-x86_64The unreleased R on Windows, x86_64
OK
- Version checked
- 0.5.0
- Time taken
- 318 s
r-oldrel-macos-arm64The previous release of R on macOS, arm64
OK
- Version checked
- 0.5.0
- Time taken
- 100 s
r-oldrel-macos-x86_64The previous release of R on macOS, x86_64
OK
- Version checked
- 0.5.0
- Time taken
- 460 s
r-oldrel-windows-x86_64The previous release of R on Windows, x86_64
OK
- Version checked
- 0.5.0
- Time taken
- 404 s
r-patched-linux-x86_64The patched release of R on Linux, x86_64
OK
- Version checked
- 0.4.0
- Time taken
- 313 s
r-release-linux-x86_64The current release of R on Linux, x86_64
OK
- Version checked
- 0.5.0
- Time taken
- 327 s
r-release-macos-arm64The current release of R on macOS, arm64
OK
- Version checked
- 0.5.0
- Time taken
- 71 s
r-release-macos-x86_64The current release of R on macOS, x86_64
OK
- Version checked
- 0.5.0
- Time taken
- 524 s
r-release-windows-x86_64The current release of R on Windows, x86_64
OK
- Version checked
- 0.5.0
- Time taken
- 318 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 |
| 9 Jun 2026 | OK | 12 | 0 | 0 | 0 |
| 8 Jun 2026 | Error | 11 | 0 | 0 | 1 |
| 4 Jun 2026 | OK | 6 | 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
- 488+3.6% up on the 30 days before, the better directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.
CRAN rank
7,131 of 26,530
CRAN
449 downloads in the last 30 days
- Rank
- 7,131 of 26,530
- Change
- +9.5% up on the 30 days before, the better direction
It is in the total. Take it out
r2u
11 downloads in the last 30 days
- Rank
- 6,263 of 30,526
- Change
- −54.2% down on the 30 days before, the worse direction
It is in the total. Take it out
autoCRAN
28 downloads in the last 30 days
- Rank
- 1,469 of 29,212
- Change
- −24.3% down on the 30 days before, the worse direction
It is in the total. Take it out
The total is 488 downloads in the last 30 days. It is the sum of 3 channels: CRAN, r2u and autoCRAN.
Over time
Dependencies
- Needs
- 16
- Dependent packages
- 0
- Suggested by
- 0
Needs (16)
- cli
- config
- dplyr
- DT
- ggplot2
- glue
- golem
- plotly
- purrr
- rlang
- shiny
- shinycssloaders
- shinydashboard
- shinyjs
- shinyWidgets
- stats
- Installing it adds
- 77 packages, 73.8 MB of source
- Of those, need compilation
- 38
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
README, vignettes, a NEWS file and the shares read from its help pages. Files kept only in the repository, such as a pkgdown configuration or CI files, are read by the repository scan instead.
- Functions
- 124
- Public exports
- 26
- Lines of R code
- 9,330
- Median complexity
- 3
Functions (124)
Size and composition
Lines by kind (18,062)
| Kind | Lines | Share |
|---|---|---|
| R code | 9,330 | 52% |
| Tests | 4,059 | 22% |
| Documentation | 2,054 | 11% |
| Guides | 2,619 | 15% |
Lines by language
| Language | Lines | Share |
|---|---|---|
| R | 13,389 | 74% |
| Vignettes | 2,619 | 15% |
| Rd | 2,054 | 11% |
Languages are counted from file extensions.
- Files
- 138
- R functions
- 124
- Object systems
- S3: 8 methods
Complexity
- Median
- 3
- Mean
- 5.77
- Highest
- 36
- Median lines per function
- 29
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
- 124
- Calls
- 172
- Unconnected
- 9
- Groups
- 4
Growth (5 releases)
Release changes
Tests
The tests ran and coverage was measured.
- Lines run by tests
- 34.2%
- Expressions run by tests
- 55%
- Test cases
- 330
- Exports named in tests
- 96.2%
Coverage by file (24)
Coverage run
- Lines counted
- 5,945
- Lines the tests ran
- 2,035
- Tests passed
- Yes
- Measured with
- covr 3.6.5 on R 4.6.1
Test suite
- Has tests
- Yes
- Test frameworks
- testthat
- Test cases
- 330
- Snapshot tests
- 11
- Lines of tests
- 4,059
- Test lines per line of code
- 0.52
Documentation
- Exports documented
- 100%
- Arguments documented
- 98.7%
- Return value documented
- 100%
- Help pages with examples
- 61.1%
- Examples run in checks
- 100%
Guides (7)
Other documentation
- README
- Yes, 1,597 words
- Release notes file
- Yes
- Help pages
- 36
- Lines of documentation
- 2,054
People
Method, People Method People on the site are the names packages give them in their Author and maintainer identity
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.
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, Codeberg and Bitbucket.Repository signals
URL and BugReports fields of its DESCRIPTION file. Read-only mirrors, the cran and bioc accounts on GitHub and git.bioconductor.org, are left out.
ndohpenngit / bayprior on github.com
- Stars
- 2no change on 30 days ago
- Forks
- 0
- Open issues
- 3
- Last commit
- 24 Oct 2026
Activity
- Commits
- 303
- Open pull requests
- 0
- Tagged releases
- 16
- Latest tagged release
- v0.5.0, 21 Oct 2026
- In development
- Default branch at 0.5.0.9000, ahead of CRAN 0.5.0 (checked 2026-10-25)
- Issues closed in
- 1 day (median)
- Pull requests closed in
- 0 days (median)
- Pull requests merged
- 98%
- Created
- 24 Apr 2026
- 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 |
| Governance and community | Code of conduct, Issue templates, PR template |
| Docs source | Quarto project GitHub Pages site last deployed 2026-10-24 The repository has a site deploy workflow |
| Coverage | Coverage reporting (Codecov) |
| CRAN release process | cran-comments.md |
| Lint, format, editor | RStudio project |
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
R CMD build reads .Rbuildignore and leaves out files used only in development, such as .github/, .lintr, renv/, a Dockerfile and cran-comments.md, so the released source file holds almost none of them. The repository is the one place these files stay visible.
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 28 Oct 2026, the day the data was read.Packages leaving
| Version | Released | R |
|---|---|---|
| 0.5.0 current | 20 Oct 2026 | 4.6.1 |
| 0.4.0 | 10 Oct 2026 | 4.6.1 |
| 0.3.2 | 19 Aug 2026 | 4.6.1 |
| 0.3.0 | 30 Jul 2026 | 4.6.1 |
| 0.2.12 | 3 Jun 2026 | 4.6.0 |
Release notes (0.5.0)
Changes to default behaviour
prior_conflict()now computesbox_pvalue(and thes_valuederived from it) from the exact prior predictive distribution by default wherever a closed form exists: Beta-Binomial (Beta prior,type = "binary") and Gamma-Poisson / Negative Binomial (Gamma prior,type = "poisson"or"survival"). Theexactargument now defaults toNULL(exact where available, silent fallback to the Normal approximation otherwise);exact = TRUEadditionally messages on fallback andexact = FALSEreproduces the Normal-approximation results of 0.4.0 and earlier. The exact check requires whole-number counts (and, for binary data, a whole-number sample size); otherwise the Normal approximation is used.$box_pvalue_methodreports which was used. Reason: a simulation study (seevalidation/) found that the Normal approximation, whose standard error is estimated from the observed proportion or count, can reject far more often than its nominal level when there is no prior-data conflict, for informative priors and small samples. For example, for a Beta(5, 45) prior with n = 10 and no conflict, the approximation flagged conflict in about 39% of simulated datasets at the 5% level, because zero observed events (probable under the prior) yield a zero standard error and a small approximate p-value. The exact version's rejection rate stayed at or below the nominal level in all simulated settings. Results for moderate samples and weakly informative priors are essentially unchanged.- The prior predictive p-value now also covers mixture priors (e.g.
robust_prior(), and linear pooling fromaggregate_experts()): the predictive is the weighted mixture of the component predictives, exact for Beta (binary) or Gamma (Poisson/survival) components. Other proper priors (Normal, lognormal, Weibull, exponential, or a Normal vague component) are handled by equal-probability quadrature over the prior, truncated to the parameter space;$box_pvalue_methodis then"numerical". The definition of the p-value is the same throughout (total predictive probability of outcomes no more probable than the observed one). In the simulation (validation/sim_mixture.R), pooled-consensus mixtures with the Normal approximation rejected up to 43% of the time at the 5% level under no conflict; the prior predictive version never exceeded 5%. For lognormal, Weibull and exponential priors on a rate (validation/ sim_numerical.R, 84 cells) the numerical p-value never exceeded the nominal level either (the approximation reached 63%). At equal size, the prior predictive p-value has the same average power as the old approximation, but less power against downward shifts for skewed priors (validation/sim_power.R; seeREPORT_boxp.mdfor the full comparison). - New field
$box_pvalue_cautiononprior_conflict()results: set when the Normal approximation produced the p-value for discrete data with zero or all events, or fewer than 10 events or non-events. Shown inprint()and in the app. conflict_severityis now classified on the reportedbox_pvalue:"severe"below 2 * pnorm(-3) (about 0.0027),"mild"belowalpha. This equals the earlier rule (surprise_index >= 3) whenever the Normal approximation is used, and avoids mixing an exact p-value with an approximate distance otherwise.- Shiny app (Conflict module): the "exact prior predictive" option is now on by default; unchecking it uses the Normal approximation throughout.
New features
plot_sensitivity()andplot_tornado()gain aninteractiveargument. The default (FALSE) returns a ggplot object exactly as before;interactive = TRUEreturns a plotly object with readable tooltips (rounded values and parameter labels instead of raw column names) and, for the tornado plot, an explicit title and subtitle.
Shiny app
- Sensitivity module: plots are interactive with formatted tooltips, the range sliders no longer show tick marks, a note is shown when the prior is a mixture (the analysis uses a moment-matched working prior), and the "Analysis type" and outcome buttons clearly distinguish the selected option.
- Dark mode: plotly plots are now recoloured natively instead of through a CSS colour-inversion filter, so plot colours and hover labels are correct and plots no longer flash light after an analysis is run.