Skip to content

shapr

1.0.8

Prediction Explanation with Dependence-Aware Shapley Values

4packages depend
32.7Kdownloads / year
61.2%test coverage
13/13checks pass

Overview

About
Maintained by Martin JullumFirst published 2020-09-0314 releasesCRAN page ↗GitHub ↗

Complex machine learning models are often hard to interpret. However, in many situations it is crucial to understand and explain why a model made a specific prediction. Shapley values is the only method for such prediction explanation framework with a solid theoretical foundation. Previously known methods for estimating the Shapley values do, however, assume feature independence. This package implements methods which accounts for any feature dependence, and thereby produces more accurate estimates of the true Shapley values. An accompanying 'Python' wrapper ('shaprpy') is available through PyPI.

Install

Health

CRAN checks
13OK
Slowest check: 16.0 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.40
61.2%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 987 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
30%
Documented parameters
87%
Return-value docs
100%
References docs
6%

Downloads

32.7K
CRAN downloads in the past year
Rank #3,051 · ~90/day · ~2.7K/mo
Daily download trend is not available in this view yet.
1.2K30 days
4.2K90 days
32.7K1 year
Compare downloads with other packages →
Also on483 r2u20 autocran67 c2d4u

Repository

Repository
178Stars
36Forks
6Open issues
4Open PRs
17Releases
327Commits
11Contributors
rstatsrcpprcpparmadilloshapleyexplainable-aiexplainable-ml
327 commits · Last activity 2026-08-07 · 0% stars, 30d

Stars over time

2025-08-18 · 1642026-08-15 · 178

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/norskregnesentral/shapr on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (3)
lintrVS CodeRStudio project
Show all practices
Coverage (1)
.covrignore
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: copilot on 2026-05-16

copilot

Most recent: copilot on 2026-05-16

Evidence
  • agents-md: on 2026-05-16 · evidence D
  • copilot: on 2026-05-16 · evidence D, PR
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Reverse dependencies
4direct
0indirect

Code & Tests

People & History

People (9)
Maintainer (1)
Maintainer, Author
Authors (5)
Maintainer, Author
Author · added in 1.0.1
Author · added in 1.0.1
Author · added in 0.2.0
Contributors (3)
Contributor
Copyright holders (1)
Copyright holder, Funder
Funders (1)
Copyright holder, Funder
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.8Latest
    2026-01-20 · current release · diff ↗
  • 1.0.7
    2025-12-22 · diff ↗
  • unarchivedReturned to CRAN
    2025-12-22
  • archivedRemoved from CRAN
    2025-12-17
    issues were not corrected in time
  • 1.0.6
    2025-11-17 · diff ↗
  • 1.0.5
    2025-08-25 · diff ↗
  • 1.0.4
    2025-04-28 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.3
    2025-04-01 · diff ↗
  • 1.0.2
    2025-02-07 · diff ↗
  • unarchivedReturned to CRAN
    2025-02-07
  • archivedRemoved from CRAN
    2025-01-30
    issues were not corrected in time, and for repeated policy violations including repeatedly spamming a team member in unreadably small HTML
  • 1.0.1
    2025-01-16 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.2
    2023-05-04 · diff ↗
Show 11 earlier events
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1
    2023-02-27 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.0
    2021-01-28 · diff ↗
  • 0.1.4
    2021-01-21 · diff ↗
  • unarchivedReturned to CRAN
    2021-01-21
  • archivedRemoved from CRAN
    2021-01-20
    check problems were not corrected in time
  • 0.1.3
    2020-09-04 · diff ↗
  • 0.1.2
    2020-09-03
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-09-03
Total releases
14 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Download size
3.3 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("shapr")
Jullum, M., Norsk Regnesentral, Lachmann, J., Lingjærde, C., Løland, A., Olsen, L. H. B., Redelmeier, A., Sellereite, N., & Wahl, J. C. (2026). shapr: Prediction Explanation with Dependence-Aware Shapley Values (Version 1.0.8) [Computer software]. https://doi.org/10.32614/CRAN.package.shapr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the 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 shapr version 1.0.8 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy