R Observatory
Search
install.packages("mrbayes")
CRAN 30-day downloads, method
366−19.6% down on the 30 days before, the worse direction

Bayesian estimation of inverse variance weighted (IVW), Burgess et al. (2013) <doi:10.1002/gepi.21758>, and MR-Egger, Bowden et al. (2015) <doi:10.1093/ije/dyv080>, summary data models for Mendelian randomization analyses.

Maintainer
Tom Palmer
Licence
GPL-3
Latest release
8 Jul 2026
First release
4 Sep 2019

Compare with another package

More details
Releases
8
Needs compilation
Yes
Needs R
>= 4.3.0
Config/roxygen2/markdown
TRUE
Config/roxygen2/version
8.0.0
LazyData
true
SystemRequirements
GNU make
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("mrbayes")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1093/ije/dyaa191.

The repository also keeps a CITATION.cff.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for mrbayes version 0.5.3 [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.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.5.3
    Time taken
    641 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.5.3
    Time taken
    626 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.5.3
    Time taken
    458 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.5.3
    Time taken
    646 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    1,032 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.5.3
    Time taken
    73 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    325 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    1,220 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    799 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    786 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.5.3
    Time taken
    72 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    333 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    932 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (8)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
29 Jul 2026OK13000
27 Jul 2026Error12001
25 Apr 2026OK12000
22 Apr 2026Note11300
18 Apr 2026Error10301
10 Mar 2026Note11300

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
375−21.5% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

9,813 of 26,530

CRAN

366 downloads in the last 30 days

Rank
9,813 of 26,530
Change
−19.6% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

7 downloads in the last 30 days

Rank
7,875 of 30,526
Change
−63.2% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

2 downloads in the last 30 days

Rank
22,452 of 29,212
Change
−50% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

All channels
4020

Compare downloads

Needs
9
Dependent packages
0
Suggested by
0
Needs (9)
Installing it adds
83 packages, 63.7 MB of source
Of those, need compilation
46
Optional extras (3)

mrinput_mr_format

Kind
Public R function
File
R/mrinput_mrformat.R, line 24
Lines
14
Complexity
2
Functions
36
Public exports
13
Lines of R code
2,239
Median complexity
2
Functions (36)
FunctionKindFileLinesComplexity
mr_egger_rjagsPublicR/mr_egger_rjags.R23425
mr_egger_stanPublicR/mr_egger_stan.R563
mr_formatPublicR/mr_format.R142
mr_ivw_rjagsPublicR/mr_ivw_rjags.R14913
mr_ivw_stanPublicR/mr_ivw_stan.R463
mr_radialegger_rjagsPublicR/mr_radialegger_rjags.R24025
mr_radialegger_stanPublicR/mr_radialegger_stan.R553
mrinput_mr_formatPublicR/mrinput_mrformat.R142
mvmr_egger_rjagsPublicR/mvmr_egger_rjags.R26025
mvmr_egger_stanPublicR/mvmr_egger_stan.R623
mvmr_formatPublicR/mvmr_format.R152
mvmr_ivw_rjagsPublicR/mvmr_ivw_rjags.R15112
Size and composition

Lines by kind (7,475)

KindLinesShare
R code2,23930%
Tests1,21216%
Documentation91812%
Compiled code3,10642%

Lines by language

LanguageLinesShare
R3,45146%
C2,91339%
Rd91812%
C++1933%

Languages are counted from file extensions.

Files
78
R functions
25
Compiled functions
11
Object systems
S3: 10 methods
Complexity
Median
2
Mean
5.44
Highest
25
Median lines per function
38
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
25
Calls
17
Unconnected
11
Groups
1
Growth (8 releases)
Total lines by release
1,568 on 4 Sep 20197,475 on 8 Jul 2026
Release changes

Both releases side by side

0.5.2 to 0.5.3, 19 Aug 2024 to 8 Jul 2026

Files changed
56
Lines added
1,823
Lines deleted
1,711
Exports
No change
Changed measures (8)
MeasureSubjectBeforeAfter
Total linesStructure7,4157,475
Lines of R codeStructure2,2762,239
Lines of testsStructure1,1391,212
Compiled shareLanguages42%42%
Lines of documentationDocumentation894918
Test casesTesting4948
Test lines per line of codeTesting0.50.54
Lines per function (mean)Complexity67.4865.08
Most changed files (12 of 56)
FileLines addedLines deleted
tests/testthat/test-mr_radialegger_rjags.R149128
tests/testthat/test-mvmr_ivw_rjags.R137128
R/mvmr_ivw_rjags.R132131
tests/testthat/test-mr_egger_rjags.R133127
tests/testthat/test-mvmr_egger_rjags.R115133
tests/testthat/test-mvmr_egger_stan.R10294
tests/testthat/test-mvmr_ivw_stan.R10193
tests/testthat/test-mr_ivw_rjags.R9888
R/mr_ivw_rjags.R9392
R/mvmr_egger_rjags.R76100
tests/testthat/test-mr_egger_stan.R9181
tests/testthat/test-mr_radialegger_stan.R9181

The run took too long and was stopped.

Test cases
48
Lines of tests
1,212
Exports named in tests
92.3%
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
48
Test lines per line of code
0.54
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
81.3%
Examples run in checks
15.4%
Other documentation
README
Yes, 126 words
Release notes file
Yes
Help pages
16
Lines of documentation
918
DatasetSizeColumns
bmi_insulinDataset from Richmond et al. 2017 investigating the association of BMI on insulin resistance14 × 5rsid, beta.exposure, beta.outcome, se.exposure, se.outcome
dodataDataset from Do et al., Nat Gen, 2013 containing summary level data on associations of genotypes with lipid traits and the risk of coronary heart diseases185 × 21rsid, a1, a2, chr, pos, ldlcbeta and 15 more

okezie94 / mrbayes on github.com

Stars
5no change on 30 days ago
Forks
1
Open issues
0
Last commit
4 Oct 2026
Activity
Commits
530
Open pull requests
0
Tagged releases
8
Latest tagged release
v0.5.3, 8 Jul 2026
In development
Default branch at 0.5.3.9000, ahead of CRAN 0.5.3 (checked 2026-10-25)
Issues closed in
36 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
85%
Created
15 Jul 2019
Licence file reads as
GPL-3.0
Development practices (9)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourcepkgdown
GitHub Pages site last deployed 2026-10-04
The repository has a site deploy workflow
pkgdown site last built 2026-07-08
Research and citationCITATION.cff
Lint, format, editorlintr, RStudio project
Git structural.gitattributes

Method, repository practices

Across okezie94

R releases
  • On CRAN
  • Release
VersionReleasedREvents
0.5.3 current8 Jul 20264.6.1
0.5.219 Aug 20244.4.1Maintainer: Tom Palmer
0.5.12 Oct 20214.1.1
0.5.021 Sep 20214.1.1
0.4.013 Jul 20214.1.0
0.3.01 Apr 20214.0.5
0.2.028 May 20204.0.0
0.1.04 Sep 20193.6.1
Release notes (0.5.3)
  • The minimum version of R is now 4.3.0. This is required by the distributional package (a transitive dependency via rstan → loo → posterior), which uses chooseOpsMethod() (introduced in R 4.3.0).
  • Fixes for segfault on macOS ARM runners on r-universe.
  • Bump roxygen2 to 8.0.0.
  • Fix hardcoded 3-exposure loop in MVMR-Egger print/summary.
  • Fix broken "joint" prior branch in mvmr_egger_rjags().
  • Fix sigma parameterization in mr_radialegger_rjags().
  • Fix wrong function name in Stan MVMR error messages.
  • Complete the sigma < 1 warning message in egger rjags functions.
  • Fix bmi_insulin column count in documentation.
  • Fix comment typos in egger rjags functions.
  • Constrain prior to 1-3 in mvmregger.stan.
  • Remove no-op prior self-assignment in rjags functions.
  • Check for rjags before class in MVMR rjags functions.
  • Widen non-informative intercept prior in mregger.stan.