Skip to content

Commit fd1a01f

Browse files
authored
Merge pull request #101 from ModelOriented/package_version
Package version fix
2 parents 95c5c12 + bd7cb1d commit fd1a01f

File tree

4 files changed

+18
-30
lines changed

4 files changed

+18
-30
lines changed

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 0.9.0
2-
Date: 2023-06-09 14:22:29 UTC
3-
SHA: 3f6bd1f781851c169a080adb317142b133f58147
1+
Version: 0.9.1
2+
Date: 2023-07-18 17:24:12 UTC
3+
SHA: 447cbcf8fca1601079604e015c68fb52171ae2ab

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- `dimnames.shapviz()` has received a replacement method. You can thus change the column names of SHAP matrix and feature data (as well as SHAP interactions) by `colnames(x) <- ...`, see https://github.com/ModelOriented/shapviz/issues/98
66

7+
## Maintenance
8+
9+
- Fix for https://github.com/ModelOriented/shapviz/issues/100 (`package_version()` applied to numeric value will be deprecated in the future)
10+
711
# shapviz 0.9.0
812

913
## New features

R/shapviz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ shapviz.lgb.Booster = function(object, X_pred, X = X_pred,
251251
)
252252

253253
# Switch for different versions of predict.lgb.Booster()
254-
is_v4 <- utils::packageVersion("lightgbm") >= 4
254+
is_v4 <- utils::packageVersion("lightgbm") >= "4"
255255
has_type <- "type" %in% names(formals(utils::getS3method("predict", "lgb.Booster")))
256256
if (is_v4 || has_type) {
257257
S <- stats::predict(object, newdata = X_pred, type = "contrib", ...)

cran-comments.md

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,27 @@
1-
# Re-resubmission
2-
3-
Examples that take 0.09 seconds on my Windows laptop take 6 seconds on Linux. I don't know how to fix this, so I am resorting to dontruns around all examples involving XGBoost.
4-
5-
# Re-resubmission
6-
7-
Examples still taking too long on Linux. No idea how to fix this except using dontruns...
8-
9-
# Resubmission
10-
11-
Examples taking too long on Linux.
12-
13-
- I have now reduced the number of examples.
14-
- And the number of boosting rounds.
15-
16-
# shapviz 0.9.0
1+
# shapviz 0.9.1
172

183
Hello CRAN team
194

20-
- I have added a beautiful house price dataset with 14000 transactions from Miami in 2016. A friend of mine has created it (Prof. Steven Bourassa).
21-
- There is a new plot `sv_dependence2D()` that is ideal for visualization of geographic components.
22-
- Added new vignette on SHAP analyses for models with geographic components.
5+
This is a small release fixing a future problem pointed out by Kurt Hornik about applying package_version() to numeric input.
236

247
## Checks look good
258

269
### check(manual = TRUE, cran = TRUE)
2710

28-
> checking HTML version of manual ... NOTE
11+
- checking for future file timestamps ... NOTE
12+
unable to verify current time
13+
14+
- checking HTML version of manual ... NOTE
2915
Skipping checking HTML validation: no command 'tidy' found
3016

3117
### RHub
3218

33-
* checking package dependencies ... NOTE
34-
Packages which this enhances but not available for checking:
35-
'fastshap', 'h2o', 'lightgbm'
36-
* checking HTML version of manual ... NOTE
37-
Skipping checking HTML validation: no command 'tidy' found
38-
Skipping checking math rendering: package 'V8' unavailable
19+
debian ok
3920

21+
Others: hanging
4022

4123
### Winbuilder()
4224

4325
Status: OK
26+
R Under development (unstable) (2023-07-17 r84702 ucrt)
27+

0 commit comments

Comments
 (0)