Description
Computes fast (relative to other implementations) approximate Shapley values for any supervised learning model. Shapley values help to explain the predictions from any black box model using ideas from game theory; see Strumbel and Kononenko (2014) <doi:10.1007/s10115-013-0679-x> for details.
Downloads
6.4K
Last 30 days
1534th
18.8K
Last 90 days
81.5K
Last year
Trend: +11.3% (30d vs prior 30d)
CRAN Check Status
10
ERROR
4
OK
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | ERROR |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| r-devel-linux-x86_64-fedora-clang | ERROR |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| r-devel-macos-arm64 | ERROR |
| r-devel-windows-x86_64 | ERROR |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | ERROR |
| r-release-linux-x86_64 | ERROR |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | ERROR |
Check details (10 non-OK)
ERROR
r-devel-linux-x86_64-debian-clang
tests
Running ‘tinytest.R’ [4s/5s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 79ms [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 4ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 2ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R..........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-devel-linux-x86_64-debian-gcc
tests
Running ‘tinytest.R’ [3s/3s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 47ms [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 2ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 5ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R..........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-devel-linux-x86_64-fedora-clang
tests
Running ‘tinytest.R’
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 0.1s [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 4ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 3ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R........... 3 t
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-devel-linux-x86_64-fedora-gcc
tests
Running ‘tinytest.R’
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests Error in predict.lgb.Booster(object, data = newdata, rawscore = TRUE) :
Argument 'rawscore' is no longer supported. Use type='raw' instead.
Calls: <Anonymous> ... eval -> eval -> pfun.lgb -> predict -> predict.lgb.Booster
Execution halted
ERROR
r-devel-macos-arm64
tests
Running ‘tinytest.R’ [1s/1s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests
test-adjust.R................. 0 tests Error in predict.lgb.Booster(object, data = newdata, rawscore = TRUE) :
Argument 'rawscore' is no longer supported. Use type='raw' instead.
Calls: <Anonymous> ... eval -> eval -> pfun.lgb -> predict -> predict.lgb.Booster
Execution halted
ERROR
r-devel-windows-x86_64
tests
Running 'tinytest.R' [2s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 81ms [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 3ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 2ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R...........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-oldrel-windows-x86_64
tests
Running 'tinytest.R' [3s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 0.1s [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 5ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 3ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R...........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-patched-linux-x86_64
tests
Running ‘tinytest.R’ [4s/4s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 74ms [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 8ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 2ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R..........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-release-linux-x86_64
tests
Running ‘tinytest.R’ [6s/7s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 77ms [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 6ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 8ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R..........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
ERROR
r-release-windows-x86_64
tests
Running 'tinytest.R' [2s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_package("fastshap", at_home = home)
+ }
test-adjust.R................. 0 tests 64ms [Exited at #7: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-baseline.R............... 0 tests 4ms [Exited at #4: 'requireNamespace("lightgbm", quietly = TRUE)' is not TRUE]
test-convergence.R............ 0 tests 2ms [Exited at #4: Test not ready]
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 0 tests
test-copy-classes.R........... 1 tests OK
test-copy-classes.R........... 2 tests OK
test-copy-classes.R...........
...[truncated]...
.R.................. 4 tests OK Error in phis[, "BIAS"] : incorrect number of dimensions
Calls: <Anonymous> ... FUN -> eval -> eval -> <Anonymous> -> explain.xgb.Booster
In addition: Warning messages:
1: In throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
2: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
3: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 24, 2026
ERROR
r-devel-linux-x86_64-debian-gcc
tests
Running ‘tinytest.R’ [2s/3s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
>
> if ( requireNamespace("tinytest", quietly=TRUE) ){
+ home <- length(unclass(packageVersion("fastshap"))[[1L]]) == 4
+ tinytest::test_packag
...[truncated]...
ome an error in a future version.
4: In throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
Reverse Dependencies (9)
Dependency Network
Version History
new
0.1.1
Mar 10, 2026
new
0.0.2
Nov 21, 2019