Skip to content

Commit 12aa933

Browse files
author
Lei Song
committed
CRAN v0.2.1
1 parent f6a1fd0 commit 12aa933

File tree

4 files changed

+61
-2
lines changed

4 files changed

+61
-2
lines changed

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# itsdm 0.2.1
2+
3+
- Adapted the package to accommodate the recent update of its dependency `fastshap` (version 0.1.0). The usage of the functions remains unchanged.
4+
- Optimized the function examples to meet the requirements for passing the CRAN check.
5+
16
# itsdm 0.2.0
27

38
- Convert Shapley values-based functions to usable by external models (as described in issue # 3), and add examples in function documentation and vignettes to show users how to use these functions.

R/convert_to_pa.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@
9191
#' pa_thred
9292
#' plot(pa_thred)
9393
#'
94+
#' \dontrun{
9495
#' # Logistic conversion
9596
#' pa_log <- convert_to_pa(mod$prediction, method = 'logistic',
9697
#' beta = 0.5, alpha = -.05)
9798
#'
9899
#' # Linear conversion
99100
#' pa_lin <- convert_to_pa(mod$prediction, method = 'linear',
100101
#' a = 1, b = 0)
101-
#' #'
102+
#' }
103+
#'
102104
convert_to_pa <- function(suitability, # prediction from isotree_sdm
103105
method = "logistic",
104106
beta = 0.5, # could be NA, for threshold or logistic

cran-comments.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
## Update (version 0.2.1)
2+
3+
This is a minor update for the package, addressing the recent upgrade of the `fastshap` package and lightening the examples to run in under 5 seconds.
4+
5+
### Test environments
6+
7+
1. Local macOS Ventura 13.4, R version 4.3.0
8+
9+
2. Github actions
10+
11+
- Windows Server 2022 x64 (build 20348), R version 4.3.0 (2023-04-21 ucrt)
12+
- Ubuntu 22.04.2 LTS, R version 4.3.0 (2023-04-21)
13+
- Ubuntu 22.04.2 LTS, R Under development (unstable) (2023-06-07 r84523)
14+
- Ubuntu 22.04.2 LTS, R version 4.2.3 (2023-03-15)
15+
- macOS Monterey 12.6.5, R version 4.3.0 (2023-04-21)
16+
17+
3. `devtools` check
18+
19+
- Windows, R Under development (unstable) (2023-06-09 r84528 ucrt), `devtools::check_win_devel()`
20+
- Windows, R version 4.3.0 (2023-04-21 ucrt), `devtools::check_win_release()`
21+
- Windows, R version 4.2.3 (2023-03-15 ucrt), `devtools::check_win_oldrelease()`
22+
- macOS 13.3.1 (22E261), R version 4.3.0 Patched (2023-05-18 r84451), `devtools::check_mac_release()`
23+
- Fedora Linux R-devel clang gfortran, Ubuntu Linux 20.04.1 LTS R-release GCC, Windows Server 2022 R-devel 64 bit, `devtools::check_rhub()`
24+
25+
### R CMD check
26+
27+
There were no ERRORs or WARNINGs.
28+
29+
There were two NOTEs that are only found on Windows (r-hub):
30+
31+
```
32+
* checking for non-standard things in the check directory ... NOTE
33+
Found the following files/directories:
34+
''NULL''
35+
* checking for detritus in the temp directory ... NOTE
36+
Found the following files/directories:
37+
'lastMiKTeXException'
38+
```
39+
40+
As noted in [R-hub issue #560](https://github.com/r-hub/rhub/issues/560), the first NOTE could be due to something in R-hub and can be ignored.
41+
And as noted in [R-hub issue #503](https://github.com/r-hub/rhub/issues/503), the second NOTE could be due to a bug/crash in MiKTeX and can likely be ignored.
42+
43+
There was one NOTE only found on r-hub Linux:
44+
45+
````
46+
* checking HTML version of manual ... NOTE
47+
Skipping checking HTML validation: no command 'tidy' found
48+
```
49+
This NOTE is unrelated to my package and can likely be ignored.
50+
151
## Resubmission (version 0.2.0)
252
353
Reduce example run time for `detect_envi_change` and `variable_contrib` to pass the check. Because I cannot reproduce this issue on any other machines, I have to resubmit the package to figure it out.

man/convert_to_pa.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)