R Observatory
Search
install.packages("ribd")
CRAN 30-day downloads, method
709+21.8% up on the 30 days before, the better direction
Test coverage, method
58%of lines run by tests

Recursive algorithms for computing various relatedness coefficients, including pairwise kinship, kappa and identity coefficients. Both autosomal and X-linked coefficients are computed.

Full description

Recursive algorithms for computing various relatedness coefficients, including pairwise kinship, kappa and identity coefficients. Both autosomal and X-linked coefficients are computed. Founders are allowed to be inbred, which enables construction of any given kappa coefficients, as described in Vigeland (2020) <doi:10.1007/s00285-020-01505-x>. In addition to the standard coefficients, 'ribd' also computes a range of lesser-known coefficients, including generalised kinship coefficients, multi-person coefficients and two-locus coefficients (Vigeland, 2023, <doi:10.1093/g3journal/jkac326>). Many features of 'ribd' are available through the online app 'QuickPed' at <https://magnusdv.shinyapps.io/quickped>; see Vigeland (2022) <doi:10.1186/s12859-022-04759-y>.

Maintainer
Magnus Dehli Vigeland
Licence
GPL-3
Latest release
3 Aug 2026
First release
1 Nov 2019

Compare with another package

More details
Releases
12
Needs compilation
No
Needs R
>= 4.2.0
Config/roxygen2/version
8.0.0
Language
en-GB
LazyData
true
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("ribd")

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

It points to 10.1007/s00285-020-01505-x.

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 ribd version 1.7.2 [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
    1.7.2
    Time taken
    117 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.7.2
    Time taken
    83 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.7.2
    Time taken
    101 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    1.7.2
    Time taken
    74 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    134 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.7.2
    Time taken
    30 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    201 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    153 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    108 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    108 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.7.2
    Time taken
    27 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    104 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.7.2
    Time taken
    125 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
719+14.1% up on the 30 days before, the better directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

4,468 of 26,530

CRAN

709 downloads in the last 30 days

Rank
4,468 of 26,530
Change
+21.8% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

6 downloads in the last 30 days

Rank
8,522 of 30,526
Change
−81.3% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

4 downloads in the last 30 days

Rank
13,992 of 29,212
Change
−75% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
4
Dependent packages
9
Suggested by
1
Needs (4)
Installing it adds
12 packages, 2.3 MB of source
Of those, need compilation
6
Optional extras (5)
Dependent packages (9)
PackageTitleDownloads in 30 days
forrelForensic Pedigree Analysis and Relatedness Inference1,009
ibdsim2Simulation of Chromosomal Regions Shared by Family Members590
dvirDisaster Victim Identification489
pedbuildrPedigree Reconstruction437
verbalisrDescribe Pedigree Relationships in Words428
ibdfindrHMM Toolkit for Inferring IBD Segments from SNP Data389
pedsuiteEasy Installation of the 'pedsuite' Packages for Pedigree Analysis277
KinMixLiteInference About Relationships from DNA Mixtures271
numberofallelesCompute the Probability Distribution of the Number of Alleles in a DNA Mixture211
Functions
134
Public exports
26
Lines of R code
7,638
Median complexity
4.5
Functions (134)
Size and composition

Lines by kind (10,803)

KindLinesShare
R code7,63871%
Tests7157%
Documentation2,45023%

Lines by language

LanguageLinesShare
R8,35377%
Rd2,45023%

Languages are counted from file extensions.

Files
93
R functions
134
Object systems
S3: 3 methods
Complexity
Median
4.5
Mean
7.39
Highest
39
Median lines per function
22.5
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
134
Calls
319
Unconnected
11
Groups
1
Growth (12 releases)
Total lines by release
5,623 on 1 Nov 201910,803 on 3 Aug 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
57.7%
Expressions run by tests
59%
Test cases
43
Exports named in tests
50%
Coverage by file (30)
Coverage run
Lines counted
3,256
Lines the tests ran
1,878
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
43
Lines of tests
715
Test lines per line of code
0.09
Exports documented
100%
Arguments documented
93.4%
Return value documented
87%
Help pages with examples
88.5%
Examples run in checks
100%
Other documentation
README
Yes, 1,138 words
Release notes file
Yes
Help pages
26
Lines of documentation
2,450

3 datasets, 2 can be loaded by name

DatasetSizeColumns
basicRelationshipsBasic relationships12 × 7label, relationship, phi, kappa0, kappa1, kappa2 and 1 more
jicaqueJicaque pedigree22 × 4id, fid, mid, sex
MULTIPATTERNS_NONINBREDlength 6

magnusdv / ribd on github.com

Stars
7no change on 30 days ago
Forks
1
Open issues
1
Last commit
4 Aug 2026
Activity
Commits
370
Open pull requests
0
Tagged releases
10
Latest tagged release
v1.7.2, 4 Aug 2026
Issues closed in
1 day (median)
Pull requests closed in
3 days (median)
Pull requests merged
100%
Created
10 Aug 2018
Licence file reads as
–
Development practices (4)
KindFound
Continuous integrationGitHub Actions
Docs sourceREADME.Rmd
Reproducibility and dev environmentdata-raw/
Lint, format, editorRStudio project

Method, repository practices

Across magnusdv

R releases
  • On CRAN
  • Release
VersionReleasedR
1.7.2 current3 Aug 20264.6.1
1.7.18 Feb 20254.4.2
1.7.026 Mar 20244.3.3
1.6.110 Aug 20234.3.1
1.5.014 Sep 20224.2.1
1.4.017 Apr 20224.1.3
1.3.126 Nov 20214.1.2
1.3.028 May 20214.1.0
Earlier versions (4)
VersionReleasedR
1.2.02 Aug 20204.0.2
1.1.019 Jun 20204.0.0
1.0.13 Feb 20203.6.2
1.0.01 Nov 20193.6.1
Release notes (1.7.2)

New features

  • Allow custom relationship in ibdTriangle().
  • New internal functions inbreedingContributions() and ancestralKinship().
  • More efficient .comb2().
  • Better input checks in gKinship().

Bug fixes

  • Fixed pair ordering in identityCoefs() and row alignment in coeffTable()
  • Fixed row alignment in coeffTable() when combining coefficient types.
  • Fixed edge cases in kappaIBD() for pedigree lists.
  • Fixed self-pair handling in twoLocusKinship().
  • Fixed handling of unrelated individuals in twoLocusIdentity().
  • Fixed axis-label placement and sizing in plotly IBD triangles.