Skip to content

Commit bccc20b

Browse files
authored
Merge pull request #55 from tidymodels/develop
CRAN Release Update
2 parents 88769f2 + 2f937e2 commit bccc20b

File tree

144 files changed

+16427
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+16427
-195
lines changed

.Rbuildignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
^CODE_OF_CONDUCT\.md$
1313
^\.github$
1414
^codecov\.yml$
15-
^README\.Rmd$
15+
^CRAN-SUBMISSION$
16+
^vignettes$
17+
^scripts$
18+
^[.]?air[.]toml$
19+
^\.vscode$

.github/workflows/R-CMD-check.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ on:
88
push:
99
branches: [main, master]
1010
pull_request:
11-
branches: [main, master]
1211

13-
name: R-CMD-check
12+
name: R-CMD-check.yaml
13+
14+
permissions: read-all
1415

1516
jobs:
1617
R-CMD-check:
@@ -25,24 +26,22 @@ jobs:
2526
- {os: macos-latest, r: 'release'}
2627

2728
- {os: windows-latest, r: 'release'}
28-
# Use 3.6 to trigger usage of RTools35
29-
- {os: windows-latest, r: '3.6'}
30-
# use 4.1 to check with rtools40's older compiler
31-
- {os: windows-latest, r: '4.1'}
32-
33-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
34-
- {os: ubuntu-latest, r: 'release'}
35-
- {os: ubuntu-latest, r: 'oldrel-1'}
36-
- {os: ubuntu-latest, r: 'oldrel-2'}
37-
- {os: ubuntu-latest, r: 'oldrel-3'}
38-
- {os: ubuntu-latest, r: 'oldrel-4'}
29+
# use 4.0 or 4.1 to check with rtools40's older compiler
30+
- {os: windows-latest, r: 'oldrel-4'}
31+
32+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
33+
- {os: ubuntu-latest, r: 'release'}
34+
- {os: ubuntu-latest, r: 'oldrel-1'}
35+
- {os: ubuntu-latest, r: 'oldrel-2'}
36+
- {os: ubuntu-latest, r: 'oldrel-3'}
37+
- {os: ubuntu-latest, r: 'oldrel-4'}
3938

4039
env:
4140
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4241
R_KEEP_PKG_SOURCE: yes
4342

4443
steps:
45-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v4
4645

4746
- uses: r-lib/actions/setup-pandoc@v2
4847

@@ -60,3 +59,4 @@ jobs:
6059
- uses: r-lib/actions/check-r-package@v2
6160
with:
6261
upload-snapshots: true
62+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Workflow derived from https://github.com/posit-dev/setup-air/tree/main/examples
2+
3+
on:
4+
# Using `pull_request_target` over `pull_request` for elevated `GITHUB_TOKEN`
5+
# privileges, otherwise we can't set `pull-requests: write` when the pull
6+
# request comes from a fork, which is our main use case (external contributors).
7+
#
8+
# `pull_request_target` runs in the context of the target branch (`main`, usually),
9+
# rather than in the context of the pull request like `pull_request` does. Due
10+
# to this, we must explicitly checkout `ref: ${{ github.event.pull_request.head.sha }}`.
11+
# This is typically frowned upon by GitHub, as it exposes you to potentially running
12+
# untrusted code in a context where you have elevated privileges, but they explicitly
13+
# call out the use case of reformatting and committing back / commenting on the PR
14+
# as a situation that should be safe (because we aren't actually running the untrusted
15+
# code, we are just treating it as passive data).
16+
# https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
17+
pull_request_target:
18+
19+
name: format-suggest.yaml
20+
21+
jobs:
22+
format-suggest:
23+
name: format-suggest
24+
runs-on: ubuntu-latest
25+
26+
permissions:
27+
# Required to push suggestion comments to the PR
28+
pull-requests: write
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
ref: ${{ github.event.pull_request.head.sha }}
34+
35+
- name: Install
36+
uses: posit-dev/setup-air@v1
37+
38+
- name: Format
39+
run: air format .
40+
41+
- name: Suggest
42+
uses: reviewdog/action-suggester@v1
43+
with:
44+
level: error
45+
fail_level: error
46+
tool_name: air

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"Posit.air-vscode"
4+
]
5+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"[r]": {
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "Posit.air-vscode"
5+
},
6+
"[quarto]": {
7+
"editor.formatOnSave": true,
8+
"editor.defaultFormatter": "quarto.quarto"
9+
}
10+
}

DESCRIPTION

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,52 @@
11
Package: applicable
22
Title: A Compilation of Applicability Domain Methods
3-
Version: 0.0.1.1
3+
Version: 0.2.1
44
Authors@R: c(
55
person("Marly", "Gotti", , "marlygotti@gmail.com", role = c("aut", "cre")),
66
person("Max", "Kuhn", , "max@posit.co", role = "aut"),
7-
person("Posit Software, PBC", role = c("cph", "fnd"))
7+
person("Posit Software, PBC", role = c("cph", "fnd"),
8+
comment = c(ROR = "03wc8by49"))
89
)
910
Description: A modeling package compiling applicability domain methods in
10-
R. It combines different methods to measure the amount of
11-
extrapolation new samples can have from the training set. See Netzeva
12-
et al (2005) <doi:10.1177/026119290503300209> for an overview of
13-
applicability domains.
11+
R. It combines different methods to measure the amount of
12+
extrapolation new samples can have from the training set. See
13+
<doi:10.4018/IJQSPR.2016010102> for an overview of applicability
14+
domains.
1415
License: MIT + file LICENSE
1516
URL: https://github.com/tidymodels/applicable,
1617
https://applicable.tidymodels.org
1718
BugReports: https://github.com/tidymodels/applicable/issues
1819
Depends:
19-
ggplot2,
20-
R (>= 3.6)
20+
ggplot2 (>= 4.0.2),
21+
R (>= 4.1)
2122
Imports:
2223
dplyr,
2324
glue,
24-
hardhat (>= 1.3.0),
25+
hardhat (>= 1.3.1),
2526
Matrix,
2627
proxyC,
2728
purrr,
28-
rlang (>= 1.1.1),
29+
rlang,
2930
stats,
3031
tibble,
3132
tidyr,
3233
tidyselect,
3334
utils
3435
Suggests:
3536
covr,
37+
isotree (>= 0.6.1-1),
3638
knitr,
3739
modeldata,
38-
recipes (>= 1.0.8),
40+
recipes (>= 1.0.10),
3941
rmarkdown,
4042
spelling,
41-
testthat (>= 3.2.0),
43+
testthat (>= 3.0.0),
4244
xml2
43-
VignetteBuilder:
44-
knitr
45-
Config/Needs/website: tidyverse/tidytemplate
45+
Config/Needs/website: tidyverse/tidytemplate, quarto
4646
Config/testthat/edition: 3
47+
Config/usethis/last-upkeep: 2026-02-19
4748
Encoding: UTF-8
4849
Language: en-US
4950
LazyData: true
5051
Roxygen: list(markdown = TRUE)
51-
RoxygenNote: 7.2.3
52+
RoxygenNote: 7.3.3

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2023
1+
YEAR: 2026
22
COPYRIGHT HOLDER: applicable authors

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2023 applicable authors
3+
Copyright (c) 2026 applicable authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NAMESPACE

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ S3method(apd_hat_values,default)
55
S3method(apd_hat_values,formula)
66
S3method(apd_hat_values,matrix)
77
S3method(apd_hat_values,recipe)
8+
S3method(apd_isolation,data.frame)
9+
S3method(apd_isolation,default)
10+
S3method(apd_isolation,formula)
11+
S3method(apd_isolation,matrix)
12+
S3method(apd_isolation,recipe)
813
S3method(apd_pca,data.frame)
914
S3method(apd_pca,default)
1015
S3method(apd_pca,formula)
@@ -18,13 +23,16 @@ S3method(apd_similarity,recipe)
1823
S3method(autoplot,apd_pca)
1924
S3method(autoplot,apd_similarity)
2025
S3method(print,apd_hat_values)
26+
S3method(print,apd_isolation)
2127
S3method(print,apd_pca)
2228
S3method(print,apd_similarity)
2329
S3method(score,apd_hat_values)
30+
S3method(score,apd_isolation)
2431
S3method(score,apd_pca)
2532
S3method(score,apd_similarity)
2633
S3method(score,default)
2734
export(apd_hat_values)
35+
export(apd_isolation)
2836
export(apd_pca)
2937
export(apd_similarity)
3038
export(autoplot.apd_pca)
@@ -34,14 +42,10 @@ export(score.default)
3442
import(rlang)
3543
importFrom(Matrix,Matrix)
3644
importFrom(Matrix,colSums)
37-
importFrom(dplyr,"%>%")
3845
importFrom(dplyr,count)
3946
importFrom(dplyr,group_by)
4047
importFrom(dplyr,matches)
4148
importFrom(dplyr,mutate)
42-
importFrom(dplyr,mutate_all)
43-
importFrom(dplyr,rename_all)
44-
importFrom(dplyr,sample_n)
4549
importFrom(dplyr,select)
4650
importFrom(dplyr,slice)
4751
importFrom(dplyr,starts_with)
@@ -68,6 +72,6 @@ importFrom(stats,quantile)
6872
importFrom(stats,setNames)
6973
importFrom(tibble,as_tibble)
7074
importFrom(tibble,tibble)
71-
importFrom(tidyr,gather)
75+
importFrom(tidyr,pivot_longer)
7276
importFrom(tidyselect,vars_select)
7377
importFrom(utils,globalVariables)

NEWS.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
applicable 0.0.1.1
2-
==================
1+
# applicable (development version)
2+
3+
- Improved `autoplot.apd_pca()` selector handling to fail early with a clear error when `...` selectors match no columns.
4+
- Modernized package code, tests, and vignettes to use base R pipes (`|>`) and replaced superseded tidyverse helpers (`pivot_longer()`, `across()`, and `rename_with()`).
5+
- Updated tests to use stricter modern expectations, including replacing success-path `expect_error(..., regexp = NA)` checks with `expect_no_error()`.
6+
- Expanded isolation-method maintenance and coverage work, including formula-interface checks, `check_isotree()` test paths, and refreshed isolation `.Rd` documentation.
7+
- Added a helper script (`scripts/test-changed-functions.R`) to report changed functions, check test references, run testthat, and run `covr` coverage for changed code.
8+
- Improved CRAN/release readiness with additional housekeeping: build ignore updates for `scripts/`, version/roxygen metadata maintenance, link/DOI and vignette compliance fixes, plus spelling/WORDLIST updates.
9+
- Included prior plotting/printing refinements: PCA plot sizing/faceting and print-method formatting cleanups.
10+
- Updated Quarto vignette chunk options to in-body YAML style and bumped package version in `DESCRIPTION` to `0.2.1`.
11+
- Switched Ames dataset documentation links from `http` to `https` in source, vignette text, and generated `.Rd` docs.
12+
- Refreshed website/project assets and configuration files (including favicon assets and editor/project config updates).
13+
14+
# applicable 0.1.1
15+
16+
17+
- Changes in [apd_isolation()] because [isotree::isolation.forest()] changed their default for the number of dimensions to 1.
18+
19+
- Updated snapshot unit tests that changed from rlang's changes related to the call/traceback.
20+
21+
# applicable 0.1.0
22+
23+
24+
Added isolation forest methods via the isotree package in the function `apd_isolation()`.
25+
26+
# applicable 0.0.1.1
27+
328

429
Minor patch release: fixed failing units tests due to recent package updates.
530

6-
applicable 0.0.1
7-
==================
31+
# applicable 0.0.1
32+
833

934
* First CRAN version.

0 commit comments

Comments
 (0)