Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
e19ef36
Increase RoxygenNote version.
marlycormar Jul 8, 2020
0a3278a
Load ames_new directly from applicable.
marlycormar Jul 11, 2020
db44c07
Increase plot size.
marlycormar Jul 11, 2020
a6f3ad5
Merge pull request #13 from tidymodels/fix_warnings
marlycormar Jul 11, 2020
b735680
Increase package version in preparation for submission to CRAN.
marlycormar Jul 11, 2020
bcf13e2
Increase RoxygenNote version.
marlycormar Jul 11, 2020
fbf1339
Merge branch 'develop' of github.com:tidymodels/applicable into develop
marlycormar Jul 11, 2020
6cb661c
Update list of words to ignore.
marlycormar Jul 11, 2020
5cc4542
add explicit line breaks to default print methods
mpadge Oct 22, 2020
f014bfe
Merge pull request #14 from mpadge/master
marlycormar Nov 10, 2020
628457e
changes to pca plot method
topepo Mar 18, 2022
bcdfaee
initial work on isolation forests for #19
topepo Mar 18, 2022
dd6f0bd
update documentation
topepo Mar 19, 2022
1208d23
unit tests
topepo Mar 19, 2022
4a4c2df
update news
topepo Mar 19, 2022
b24bb70
Merge branch 'main' into develop
marlycormar Mar 27, 2022
f6e28e2
Remove line at the end of DESCRIPTION.
marlycormar Mar 28, 2022
9701c22
Remove newline on print.
marlycormar Mar 28, 2022
f7128f6
Remove merge leftovers.
marlycormar Apr 3, 2022
ce66fea
Merge pull request #26 from marlycormar/develop
marlycormar Apr 3, 2022
5c480f7
Merge pull request #24 from tidymodels/no-facet
marlycormar Apr 28, 2022
e06c7fa
Fix typo.
marlycormar Apr 29, 2022
5dbdb9d
Merge pull request #25 from tidymodels/isolation
marlycormar Apr 29, 2022
218c596
Remove extra space.
marlycormar May 14, 2022
0d4036a
Add isotree to the WORDLIST.
marlycormar May 14, 2022
f1cf45a
Increase package version to 0.0.2 in preparation for new release.
marlycormar May 14, 2022
1e0a611
Increase package version to 0.0.2 in preparation for new release.
marlycormar May 14, 2022
180aeb9
Replace patch by minor version.
marlycormar May 18, 2022
ec4739f
Replace patch by minor version.
marlycormar May 18, 2022
cecf807
add an argument for single threads
topepo May 25, 2022
3bfeb25
Ignore file CRAN-SUBMISSION.
marlycormar Jun 16, 2022
2a20e3b
Increase minor version by 1 and not 2.
marlycormar Jun 16, 2022
d4a8380
Fix package version.
marlycormar Jun 16, 2022
f8d2bde
Increase roxygen version.
marlycormar Jun 16, 2022
05b234d
use different reference doi to get around CRAN redirect phobia
topepo Jun 27, 2022
c2ff197
avoid CRAN issues with link
topepo Jun 30, 2022
f970716
more updates for cran
topepo Aug 17, 2022
423a539
rename VignetteIndexEntry
topepo Aug 17, 2022
1de0a18
changes for cran requirements
topepo Aug 27, 2022
c971aae
add develop branch to GHA
topepo Apr 23, 2024
202a168
try different syntax
topepo Apr 24, 2024
a4d7b30
isotree: Needs R >= 4.3.0
topepo Apr 24, 2024
edae525
Merge pull request #38 from tidymodels/2024-04-update-GHA
topepo Apr 24, 2024
e3a807c
Isotree changes (#37)
topepo Apr 24, 2024
5cbf5c3
version bump
Apr 24, 2024
713aa0e
changes for 0.1.1
Apr 25, 2024
ae9d387
fix logo.png
EmilHvitfeldt Nov 8, 2025
f36b8ba
Include supported-by-posit script
jeroenjanssens Nov 12, 2025
a3f7492
Update package format (#39)
marlycormar Feb 17, 2026
73a2ffe
Fix ggplot2 issues (#48)
topepo Feb 17, 2026
dd558f7
Manual update from main (#49)
topepo Feb 17, 2026
a9f24ec
Merge origin/develop into origin/main (conflict-resolved simulation)
marlycormar Feb 19, 2026
02577ed
Merge branch 'develop' into fix-logo
marlycormar Feb 19, 2026
b6e48c5
Merge pull request #44 from tidymodels/fix-logo
marlycormar Feb 19, 2026
203f666
Add Supported by Posit badge script to pkgdown header
marlycormar Feb 19, 2026
2c9212f
Merge branch 'develop' into supported-by-posit
marlycormar Feb 19, 2026
0e65324
Merge pull request #45 from jeroenjanssens/supported-by-posit
marlycormar Feb 19, 2026
d89dfff
Add missing fig-alt text to continuous-data vignette plots
marlycormar Feb 19, 2026
c24f429
Sync README.md with current README.Rmd links
marlycormar Feb 19, 2026
92aa3cf
Add missing fig-alt text for PCA subset plots in vignette
marlycormar Feb 19, 2026
effcc1d
Record usethis upkeep timestamp in DESCRIPTION
marlycormar Feb 19, 2026
d3daabd
Run upkeep: tidy description, MIT license, github actions, and rebuil…
marlycormar Feb 19, 2026
eee0082
Use base pipe in tests and tighten isolation/hat-values error assertions
marlycormar Feb 19, 2026
565d9e4
Modernize R syntax and add changed-function coverage checker
marlycormar Feb 20, 2026
a1411cc
Modernize pipes/tests and replace superseded tidyverse helpers
marlycormar Feb 20, 2026
8d67fb5
Ignore scripts in build and refresh isolation Rd files
marlycormar Feb 20, 2026
e4b42bf
Update NEWS for current development changes
marlycormar Feb 20, 2026
7ef7eb8
Expand NEWS development summary with recent maintenance highlights
marlycormar Feb 20, 2026
0019f78
Update project configs and pkgdown assets
marlycormar Feb 22, 2026
ea0f7b2
Convert Quarto chunk headers and update package version
marlycormar Feb 22, 2026
571d1a6
Use HTTPS for Ames dataset reference links
marlycormar Feb 22, 2026
a9d1a61
Update NEWS with latest development changes
marlycormar Feb 22, 2026
dcf7d31
Simplify DESCRIPTION reference text to avoid spelling note
marlycormar Feb 22, 2026
7957990
Improve autoplot.apd_pca() error for empty selector matches
marlycormar Feb 23, 2026
2f937e2
Regenerate package documentation
marlycormar Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
^CODE_OF_CONDUCT\.md$
^\.github$
^codecov\.yml$
^README\.Rmd$
^CRAN-SUBMISSION$
^vignettes$
^scripts$
^[.]?air[.]toml$
^\.vscode$
28 changes: 14 additions & 14 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check
name: R-CMD-check.yaml

permissions: read-all

jobs:
R-CMD-check:
Expand All @@ -25,24 +26,22 @@ jobs:
- {os: macos-latest, r: 'release'}

- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- {os: ubuntu-latest, r: 'oldrel-3'}
- {os: ubuntu-latest, r: 'oldrel-4'}
# use 4.0 or 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: 'oldrel-4'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- {os: ubuntu-latest, r: 'oldrel-3'}
- {os: ubuntu-latest, r: 'oldrel-4'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand All @@ -60,3 +59,4 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
46 changes: 46 additions & 0 deletions .github/workflows/format-suggest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow derived from https://github.com/posit-dev/setup-air/tree/main/examples

on:
# Using `pull_request_target` over `pull_request` for elevated `GITHUB_TOKEN`
# privileges, otherwise we can't set `pull-requests: write` when the pull
# request comes from a fork, which is our main use case (external contributors).
#
# `pull_request_target` runs in the context of the target branch (`main`, usually),
# rather than in the context of the pull request like `pull_request` does. Due
# to this, we must explicitly checkout `ref: ${{ github.event.pull_request.head.sha }}`.
# This is typically frowned upon by GitHub, as it exposes you to potentially running
# untrusted code in a context where you have elevated privileges, but they explicitly
# call out the use case of reformatting and committing back / commenting on the PR
# as a situation that should be safe (because we aren't actually running the untrusted
# code, we are just treating it as passive data).
# https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
pull_request_target:

name: format-suggest.yaml

jobs:
format-suggest:
name: format-suggest
runs-on: ubuntu-latest

permissions:
# Required to push suggestion comments to the PR
pull-requests: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install
uses: posit-dev/setup-air@v1

- name: Format
run: air format .

- name: Suggest
uses: reviewdog/action-suggester@v1
with:
level: error
fail_level: error
tool_name: air
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"Posit.air-vscode"
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"[r]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "Posit.air-vscode"
},
"[quarto]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "quarto.quarto"
}
}
33 changes: 17 additions & 16 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,51 +1,52 @@
Package: applicable
Title: A Compilation of Applicability Domain Methods
Version: 0.0.1.1
Version: 0.2.1
Authors@R: c(
person("Marly", "Gotti", , "marlygotti@gmail.com", role = c("aut", "cre")),
person("Max", "Kuhn", , "max@posit.co", role = "aut"),
person("Posit Software, PBC", role = c("cph", "fnd"))
person("Posit Software, PBC", role = c("cph", "fnd"),
comment = c(ROR = "03wc8by49"))
)
Description: A modeling package compiling applicability domain methods in
R. It combines different methods to measure the amount of
extrapolation new samples can have from the training set. See Netzeva
et al (2005) <doi:10.1177/026119290503300209> for an overview of
applicability domains.
R. It combines different methods to measure the amount of
extrapolation new samples can have from the training set. See
<doi:10.4018/IJQSPR.2016010102> for an overview of applicability
domains.
License: MIT + file LICENSE
URL: https://github.com/tidymodels/applicable,
https://applicable.tidymodels.org
BugReports: https://github.com/tidymodels/applicable/issues
Depends:
ggplot2,
R (>= 3.6)
ggplot2 (>= 4.0.2),
R (>= 4.1)
Imports:
dplyr,
glue,
hardhat (>= 1.3.0),
hardhat (>= 1.3.1),
Matrix,
proxyC,
purrr,
rlang (>= 1.1.1),
rlang,
stats,
tibble,
tidyr,
tidyselect,
utils
Suggests:
covr,
isotree (>= 0.6.1-1),
knitr,
modeldata,
recipes (>= 1.0.8),
recipes (>= 1.0.10),
rmarkdown,
spelling,
testthat (>= 3.2.0),
testthat (>= 3.0.0),
xml2
VignetteBuilder:
knitr
Config/Needs/website: tidyverse/tidytemplate
Config/Needs/website: tidyverse/tidytemplate, quarto
Config/testthat/edition: 3
Config/usethis/last-upkeep: 2026-02-19
Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.3
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2023
YEAR: 2026
COPYRIGHT HOLDER: applicable authors
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2023 applicable authors
Copyright (c) 2026 applicable authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 9 additions & 5 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ S3method(apd_hat_values,default)
S3method(apd_hat_values,formula)
S3method(apd_hat_values,matrix)
S3method(apd_hat_values,recipe)
S3method(apd_isolation,data.frame)
S3method(apd_isolation,default)
S3method(apd_isolation,formula)
S3method(apd_isolation,matrix)
S3method(apd_isolation,recipe)
S3method(apd_pca,data.frame)
S3method(apd_pca,default)
S3method(apd_pca,formula)
Expand All @@ -18,13 +23,16 @@ S3method(apd_similarity,recipe)
S3method(autoplot,apd_pca)
S3method(autoplot,apd_similarity)
S3method(print,apd_hat_values)
S3method(print,apd_isolation)
S3method(print,apd_pca)
S3method(print,apd_similarity)
S3method(score,apd_hat_values)
S3method(score,apd_isolation)
S3method(score,apd_pca)
S3method(score,apd_similarity)
S3method(score,default)
export(apd_hat_values)
export(apd_isolation)
export(apd_pca)
export(apd_similarity)
export(autoplot.apd_pca)
Expand All @@ -34,14 +42,10 @@ export(score.default)
import(rlang)
importFrom(Matrix,Matrix)
importFrom(Matrix,colSums)
importFrom(dplyr,"%>%")
importFrom(dplyr,count)
importFrom(dplyr,group_by)
importFrom(dplyr,matches)
importFrom(dplyr,mutate)
importFrom(dplyr,mutate_all)
importFrom(dplyr,rename_all)
importFrom(dplyr,sample_n)
importFrom(dplyr,select)
importFrom(dplyr,slice)
importFrom(dplyr,starts_with)
Expand All @@ -68,6 +72,6 @@ importFrom(stats,quantile)
importFrom(stats,setNames)
importFrom(tibble,as_tibble)
importFrom(tibble,tibble)
importFrom(tidyr,gather)
importFrom(tidyr,pivot_longer)
importFrom(tidyselect,vars_select)
importFrom(utils,globalVariables)
33 changes: 29 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
applicable 0.0.1.1
==================
# applicable (development version)

- Improved `autoplot.apd_pca()` selector handling to fail early with a clear error when `...` selectors match no columns.
- Modernized package code, tests, and vignettes to use base R pipes (`|>`) and replaced superseded tidyverse helpers (`pivot_longer()`, `across()`, and `rename_with()`).
- Updated tests to use stricter modern expectations, including replacing success-path `expect_error(..., regexp = NA)` checks with `expect_no_error()`.
- Expanded isolation-method maintenance and coverage work, including formula-interface checks, `check_isotree()` test paths, and refreshed isolation `.Rd` documentation.
- 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.
- 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.
- Included prior plotting/printing refinements: PCA plot sizing/faceting and print-method formatting cleanups.
- Updated Quarto vignette chunk options to in-body YAML style and bumped package version in `DESCRIPTION` to `0.2.1`.
- Switched Ames dataset documentation links from `http` to `https` in source, vignette text, and generated `.Rd` docs.
- Refreshed website/project assets and configuration files (including favicon assets and editor/project config updates).

# applicable 0.1.1


- Changes in [apd_isolation()] because [isotree::isolation.forest()] changed their default for the number of dimensions to 1.

- Updated snapshot unit tests that changed from rlang's changes related to the call/traceback.

# applicable 0.1.0


Added isolation forest methods via the isotree package in the function `apd_isolation()`.

# applicable 0.0.1.1


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

applicable 0.0.1
==================
# applicable 0.0.1


* First CRAN version.
6 changes: 1 addition & 5 deletions R/applicable-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
## usethis namespace: start

#' @import rlang
#' @importFrom dplyr %>%
#' @importFrom dplyr count
#' @importFrom dplyr group_by
#' @importFrom dplyr matches
#' @importFrom dplyr mutate
#' @importFrom dplyr mutate_all
#' @importFrom dplyr rename_all
#' @importFrom dplyr sample_n
#' @importFrom dplyr select
#' @importFrom dplyr slice
#' @importFrom dplyr starts_with
Expand All @@ -34,7 +30,7 @@
#' @importFrom stats setNames
#' @importFrom tibble as_tibble
#' @importFrom tibble tibble
#' @importFrom tidyr gather
#' @importFrom tidyr pivot_longer
#' @importFrom tidyselect vars_select
#' @importFrom utils globalVariables
## usethis namespace: end
Expand Down
4 changes: 2 additions & 2 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ NULL
#'
#' `https://www.cityofames.org/government/departments-divisions-a-h/city-assessor`
#'
#' \url{http://jse.amstat.org/v19n3/decock/DataDocumentation.txt}
#' \url{https://jse.amstat.org/v19n3/decock/DataDocumentation.txt}
#'
#' \url{http://jse.amstat.org/v19n3/decock.pdf}
#' \url{https://jse.amstat.org/v19n3/decock.pdf}
#'
#' @keywords datasets
NULL
4 changes: 2 additions & 2 deletions R/hat_values-fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ apd_hat_values_impl <- function(predictors) {
hat_values <- diag(P)

# Calculate percentile for all PCs and distances
pctls <- as.data.frame(get_ref_percentile(hat_values)) %>%
setNames("hat_values_pctls") %>%
pctls <- as.data.frame(get_ref_percentile(hat_values)) |>
setNames("hat_values_pctls") |>
mutate(percentile = seq(0, 100, length = 101))

res <-
Expand Down
2 changes: 1 addition & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
find_distance_to_pca_means <- function(pcs, pca_means) {
diffs <- sweep(pcs, 2, pca_means)
sq_diff <- diffs^2
dists <- apply(sq_diff, 1, function(x) sqrt(sum(x)))
dists <- apply(sq_diff, 1, \(x) sqrt(sum(x)))
dists
}

Expand Down
Loading
Loading