diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml
index 3f658af..051ae6e 100644
--- a/.github/workflows/R-CMD-check.yaml
+++ b/.github/workflows/R-CMD-check.yaml
@@ -9,6 +9,7 @@ on:
branches:
- main
- master
+ workflow_dispatch:
name: R-CMD-check
@@ -18,16 +19,17 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- - uses: actions/checkout@v2
- - uses: r-lib/actions/setup-r@v1
- - uses: r-lib/actions/setup-pandoc@master
- - name: Install dependencies
- run: |
- install.packages(c("remotes", "rcmdcheck"))
- remotes::install_deps(dependencies = TRUE)
- Sys.setenv('_R_CHECK_SYSTEM_CLOCK_' = 0)
- shell: Rscript {0}
- - name: Check
- run: |
- rcmdcheck::rcmdcheck(args = c("--as-cran", "--no-manual"), error_on = "note")
- shell: Rscript {0}
+ - uses: actions/checkout@v3
+
+ - uses: r-lib/actions/setup-r@v2
+ with:
+ use-public-rspm: true
+
+ - uses: r-lib/actions/setup-r-dependencies@v2
+ with:
+ extra-packages: any::rcmdcheck
+ needs: check
+
+ - uses: r-lib/actions/check-r-package@v2
+ with:
+ error-on: '"note"'
diff --git a/.github/workflows/articles.yml b/.github/workflows/articles.yml
index 65e0f2b..751f51b 100644
--- a/.github/workflows/articles.yml
+++ b/.github/workflows/articles.yml
@@ -1,26 +1,31 @@
-# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
-# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
+# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
+# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
- branches:
- - main
- - master
+ branches: [main, master]
pull_request:
- branches:
- - main
- - master
+ branches: [main, master]
+ workflow_dispatch:
name: articles
jobs:
articles:
- runs-on: macOS-latest
+ runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
+ R_KEEP_PKG_SOURCE: yes
steps:
- - uses: actions/checkout@v2
- - uses: r-lib/actions/setup-r@v1
- - uses: r-lib/actions/setup-pandoc@master
+ - uses: actions/checkout@v3
+
+ - uses: r-lib/actions/setup-r@v2
+ with:
+ use-public-rspm: true
+
+ - uses: r-lib/actions/setup-r-dependencies@v2
+ with:
+ extra-packages: any::rcmdcheck
+ needs: check
- name: Install dependencies
run: |
install.packages(c("remotes", "devtools", "tidyverse", "pkgdown"))
diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml
index 47537cb..0836517 100644
--- a/.github/workflows/coverage.yaml
+++ b/.github/workflows/coverage.yaml
@@ -1,46 +1,51 @@
+# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
+# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
- branches:
- - master
+ branches: [main, master]
pull_request:
- branches:
- - master
+ branches: [main, master]
+ workflow_dispatch:
name: test-coverage
jobs:
test-coverage:
- runs-on: macOS-latest
+ runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
+
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- - uses: r-lib/actions/setup-r@master
+ - uses: r-lib/actions/setup-r@v2
+ with:
+ use-public-rspm: true
- - uses: r-lib/actions/setup-pandoc@master
+ - uses: r-lib/actions/setup-r-dependencies@v2
+ with:
+ extra-packages: any::covr
+ needs: coverage
- - name: Query dependencies
+ - name: Test coverage
run: |
- install.packages('remotes')
- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
+ covr::codecov(
+ quiet = FALSE,
+ clean = FALSE,
+ install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
+ )
shell: Rscript {0}
- - name: Cache R packages
- uses: actions/cache@v1
- with:
- path: ${{ env.R_LIBS_USER }}
- key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
- restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
-
- - name: Install dependencies
+ - name: Show testthat output
+ if: always()
run: |
- install.packages(c("remotes"))
- remotes::install_deps(dependencies = TRUE)
- remotes::install_cran("covr")
- shell: Rscript {0}
+ ## --------------------------------------------------------------------
+ find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
+ shell: bash
- - name: Test coverage
- run: covr::codecov()
- shell: Rscript {0}
\ No newline at end of file
+ - name: Upload test results
+ if: failure()
+ uses: actions/upload-artifact@v3
+ with:
+ name: coverage-test-failures
+ path: ${{ runner.temp }}/package
\ No newline at end of file
diff --git a/.github/workflows/parcats.yml b/.github/workflows/parcats.yml
index 2021cd5..0673f38 100644
--- a/.github/workflows/parcats.yml
+++ b/.github/workflows/parcats.yml
@@ -1,26 +1,31 @@
-# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
-# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
+# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
+# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
- branches:
- - main
- - master
+ branches: [main, master]
pull_request:
- branches:
- - main
- - master
+ branches: [main, master]
+ workflow_dispatch:
name: parcats
jobs:
parcats:
- runs-on: macOS-latest
+ runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
+ R_KEEP_PKG_SOURCE: yes
steps:
- - uses: actions/checkout@v2
- - uses: r-lib/actions/setup-r@v1
- - uses: r-lib/actions/setup-pandoc@master
+ - uses: actions/checkout@v3
+
+ - uses: r-lib/actions/setup-r@v2
+ with:
+ use-public-rspm: true
+
+ - uses: r-lib/actions/setup-r-dependencies@v2
+ with:
+ extra-packages: any::rcmdcheck
+ needs: check
- name: Install dependencies
run: |
install.packages(c("remotes", "devtools"))
diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml
index 7292a0a..22908e5 100644
--- a/.github/workflows/pkgdown.yaml
+++ b/.github/workflows/pkgdown.yaml
@@ -1,52 +1,55 @@
+# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
+# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
- branches:
- - main
- - master
+ branches: [main, master]
+ pull_request:
+ branches: [main, master]
+ release:
+ types: [published]
+ workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
- runs-on: macOS-latest
+ runs-on: ubuntu-latest
+ # Only restrict concurrency for non-PR jobs
+ concurrency:
+ group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
+ permissions:
+ contents: write
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- - uses: r-lib/actions/setup-r@v1
+ - uses: r-lib/actions/setup-pandoc@v2
- - uses: r-lib/actions/setup-pandoc@master
-
- - name: Query dependencies
- run: |
- install.packages('remotes')
- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
- shell: Rscript {0}
-
- - name: Cache R packages
- uses: actions/cache@v2
+ - uses: r-lib/actions/setup-r@v2
with:
- path: ${{ env.R_LIBS_USER }}
- key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
- restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
+ use-public-rspm: true
+ - uses: r-lib/actions/setup-r-dependencies@v2
+ with:
+ extra-packages: any::pkgdown, local::.
+ needs: website
- name: Install dependencies
run: |
- remotes::install_deps(dependencies = TRUE)
- install.packages("tidyverse")
- install.packages("pkgdown", type = "binary")
+ install.packages("devtools")
system("git clone https://github.com/erblast/parcats.git")
- remotes::install_deps("parcats/", dependencies = TRUE)
- devtools::install("parcats/")
+ devtools::install("parcats/", dependencies = TRUE)
shell: Rscript {0}
- - name: Install package
- run: R CMD INSTALL .
- - name: Deploy package
- run: |
- git config --local user.email "actions@github.com"
- git config --local user.name "GitHub Actions"
- Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, run_dont_run = FALSE)'
+ - name: Build site
+ run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
+ shell: Rscript {0}
+
+ - name: Deploy to GitHub pages 🚀
+ if: github.event_name != 'pull_request'
+ uses: JamesIves/github-pages-deploy-action@v4.4.1
+ with:
+ clean: false
+ branch: gh-pages
+ folder: docs
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index e20b7d0..88794e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,4 +8,5 @@ docs/
*.rdx
*.RData
*.rdb
-vignettes/model_response_cache/
\ No newline at end of file
+vignettes/model_response_cache/
+.DS_Store
\ No newline at end of file
diff --git a/DESCRIPTION b/DESCRIPTION
index 1271d16..064ec65 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: easyalluvial
Title: Generate Alluvial Plots with a Single Line of Code
-Version: 0.3.1
+Version: 0.3.1.900
Authors@R: person( "Bjoern", "Koneswarakantha", role = c("aut","cre"), email = "datistics@gmail.com", comment = c(ORCID = "0000-0003-4585-7799") )
URL: https://github.com/erblast/easyalluvial/
Description: Alluvial plots are similar to sankey diagrams and visualise categorical data
@@ -39,7 +39,7 @@ Suggests:
rpart,
glmnet,
xgboost
-RoxygenNote: 7.2.0
+RoxygenNote: 7.2.3
Imports:
purrr
, tidyr (>= 1.0.0)
diff --git a/NEWS.md b/NEWS.md
index 33798cf..74c2b8a 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -49,7 +49,7 @@ argument which will be converted to bin label.
# 20181812 0.1.7
CRAN released
-# 20181118
+# 20181118 0.0.1
CRAN submission
diff --git a/R/alluvial_model_response.R b/R/alluvial_model_response.R
index 895b99b..d9f24be 100644
--- a/R/alluvial_model_response.R
+++ b/R/alluvial_model_response.R
@@ -1095,7 +1095,8 @@ alluvial_model_response_caret = function(train, data_input, degree = 4, bins = 5
#'@inheritSection get_pdp_predictions Parallel Processing
#' @examples
#'
-#' if(check_pkg_installed("parsnip", raise_error = FALSE)) {
+#' if(check_pkg_installed("parsnip", raise_error = FALSE) &
+#' check_pkg_installed("vip", raise_error = FALSE)) {
#' df = mtcars2[, ! names(mtcars2) %in% 'ids' ]
#'
#' m = parsnip::rand_forest(mode = "regression") %>%
diff --git a/man/alluvial_model_response_parsnip.Rd b/man/alluvial_model_response_parsnip.Rd
index 65842f4..994ebc4 100644
--- a/man/alluvial_model_response_parsnip.Rd
+++ b/man/alluvial_model_response_parsnip.Rd
@@ -92,7 +92,8 @@ this model visualisation approach follows the "visualising the model
\examples{
-if(check_pkg_installed("parsnip", raise_error = FALSE)) {
+if(check_pkg_installed("parsnip", raise_error = FALSE) &
+ check_pkg_installed("vip", raise_error = FALSE)) {
df = mtcars2[, ! names(mtcars2) \%in\% 'ids' ]
m = parsnip::rand_forest(mode = "regression") \%>\%
diff --git a/tests/figs/alluvial-long/long-all-nums-plus-fill.svg b/tests/figs/alluvial-long/long-all-nums-plus-fill.svg
deleted file mode 100644
index b7e72fa..0000000
--- a/tests/figs/alluvial-long/long-all-nums-plus-fill.svg
+++ /dev/null
@@ -1,406 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-all-nums.svg b/tests/figs/alluvial-long/long-all-nums.svg
deleted file mode 100644
index b3d1293..0000000
--- a/tests/figs/alluvial-long/long-all-nums.svg
+++ /dev/null
@@ -1,289 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-fill-carrier.svg b/tests/figs/alluvial-long/long-fill-carrier.svg
deleted file mode 100644
index 7730735..0000000
--- a/tests/figs/alluvial-long/long-fill-carrier.svg
+++ /dev/null
@@ -1,561 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-fill-first.svg b/tests/figs/alluvial-long/long-fill-first.svg
deleted file mode 100644
index a4be0e0..0000000
--- a/tests/figs/alluvial-long/long-fill-first.svg
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-fill-last.svg b/tests/figs/alluvial-long/long-fill-last.svg
deleted file mode 100644
index 2412e02..0000000
--- a/tests/figs/alluvial-long/long-fill-last.svg
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-fill-to-right.svg b/tests/figs/alluvial-long/long-fill-to-right.svg
deleted file mode 100644
index db8b073..0000000
--- a/tests/figs/alluvial-long/long-fill-to-right.svg
+++ /dev/null
@@ -1,561 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-fill-value.svg b/tests/figs/alluvial-long/long-fill-value.svg
deleted file mode 100644
index b0069ba..0000000
--- a/tests/figs/alluvial-long/long-fill-value.svg
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-reorder-carrier-by-size.svg b/tests/figs/alluvial-long/long-reorder-carrier-by-size.svg
deleted file mode 100644
index 137d0f6..0000000
--- a/tests/figs/alluvial-long/long-reorder-carrier-by-size.svg
+++ /dev/null
@@ -1,561 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-reorder-x-levels.svg b/tests/figs/alluvial-long/long-reorder-x-levels.svg
deleted file mode 100644
index bb0e62d..0000000
--- a/tests/figs/alluvial-long/long-reorder-x-levels.svg
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-reorder-y-levels.svg b/tests/figs/alluvial-long/long-reorder-y-levels.svg
deleted file mode 100644
index b3f3412..0000000
--- a/tests/figs/alluvial-long/long-reorder-y-levels.svg
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-long/long-sprecify-color.svg b/tests/figs/alluvial-long/long-sprecify-color.svg
deleted file mode 100644
index a16e3ed..0000000
--- a/tests/figs/alluvial-long/long-sprecify-color.svg
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-all-facs.svg b/tests/figs/alluvial-model-response/model-response-all-facs.svg
deleted file mode 100644
index 7752cca..0000000
--- a/tests/figs/alluvial-model-response/model-response-all-facs.svg
+++ /dev/null
@@ -1,203 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-all-nums.svg b/tests/figs/alluvial-model-response/model-response-all-nums.svg
deleted file mode 100644
index 847d5de..0000000
--- a/tests/figs/alluvial-model-response/model-response-all-nums.svg
+++ /dev/null
@@ -1,573 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-cat-bi.svg b/tests/figs/alluvial-model-response/model-response-cat-bi.svg
deleted file mode 100644
index aecb377..0000000
--- a/tests/figs/alluvial-model-response/model-response-cat-bi.svg
+++ /dev/null
@@ -1,355 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-cat-multi.svg b/tests/figs/alluvial-model-response/model-response-cat-multi.svg
deleted file mode 100644
index 400f738..0000000
--- a/tests/figs/alluvial-model-response/model-response-cat-multi.svg
+++ /dev/null
@@ -1,532 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-new-change-bins-3.svg b/tests/figs/alluvial-model-response/model-response-new-change-bins-3.svg
deleted file mode 100644
index e443dd6..0000000
--- a/tests/figs/alluvial-model-response/model-response-new-change-bins-3.svg
+++ /dev/null
@@ -1,479 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-new-change-bins-7.svg b/tests/figs/alluvial-model-response/model-response-new-change-bins-7.svg
deleted file mode 100644
index 936a04d..0000000
--- a/tests/figs/alluvial-model-response/model-response-new-change-bins-7.svg
+++ /dev/null
@@ -1,1336 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-new-labs.svg b/tests/figs/alluvial-model-response/model-response-new-labs.svg
deleted file mode 100644
index 3d7b6c8..0000000
--- a/tests/figs/alluvial-model-response/model-response-new-labs.svg
+++ /dev/null
@@ -1,554 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-pdb-non-binary.svg b/tests/figs/alluvial-model-response/model-response-pdb-non-binary.svg
deleted file mode 100644
index b179d21..0000000
--- a/tests/figs/alluvial-model-response/model-response-pdb-non-binary.svg
+++ /dev/null
@@ -1,532 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response-pdb.svg b/tests/figs/alluvial-model-response/model-response-pdb.svg
deleted file mode 100644
index 066a81b..0000000
--- a/tests/figs/alluvial-model-response/model-response-pdb.svg
+++ /dev/null
@@ -1,408 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-model-response/model-response.svg b/tests/figs/alluvial-model-response/model-response.svg
deleted file mode 100644
index c50e308..0000000
--- a/tests/figs/alluvial-model-response/model-response.svg
+++ /dev/null
@@ -1,408 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-all-flows.svg b/tests/figs/alluvial-wide/wide-all-flows.svg
deleted file mode 100644
index d56f4db..0000000
--- a/tests/figs/alluvial-wide/wide-all-flows.svg
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-first.svg b/tests/figs/alluvial-wide/wide-first.svg
deleted file mode 100644
index 457cba1..0000000
--- a/tests/figs/alluvial-wide/wide-first.svg
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-islr-cars-rotate-labels.svg b/tests/figs/alluvial-wide/wide-islr-cars-rotate-labels.svg
deleted file mode 100644
index f293477..0000000
--- a/tests/figs/alluvial-wide/wide-islr-cars-rotate-labels.svg
+++ /dev/null
@@ -1,453 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-islr-cars.svg b/tests/figs/alluvial-wide/wide-islr-cars.svg
deleted file mode 100644
index 6774eab..0000000
--- a/tests/figs/alluvial-wide/wide-islr-cars.svg
+++ /dev/null
@@ -1,453 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-last.svg b/tests/figs/alluvial-wide/wide-last.svg
deleted file mode 100644
index 1bdb7f8..0000000
--- a/tests/figs/alluvial-wide/wide-last.svg
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-reorder-y-levels.svg b/tests/figs/alluvial-wide/wide-reorder-y-levels.svg
deleted file mode 100644
index c6b5a09..0000000
--- a/tests/figs/alluvial-wide/wide-reorder-y-levels.svg
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
diff --git a/tests/figs/alluvial-wide/wide-values.svg b/tests/figs/alluvial-wide/wide-values.svg
deleted file mode 100644
index 520fdf9..0000000
--- a/tests/figs/alluvial-wide/wide-values.svg
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
diff --git a/tests/figs/deps.txt b/tests/figs/deps.txt
deleted file mode 100644
index 8d7f66b..0000000
--- a/tests/figs/deps.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-- vdiffr-svg-engine: 1.0
-- vdiffr: 0.3.3
-- freetypeharfbuzz: 0.2.5
diff --git a/tests/figs/marginal-histograms/mod-cat-pred-train.svg b/tests/figs/marginal-histograms/mod-cat-pred-train.svg
deleted file mode 100644
index 9bda890..0000000
--- a/tests/figs/marginal-histograms/mod-cat-pred-train.svg
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/mod-cat-pred.svg b/tests/figs/marginal-histograms/mod-cat-pred.svg
deleted file mode 100644
index aa5b32f..0000000
--- a/tests/figs/marginal-histograms/mod-cat-pred.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/mod-num-cat.svg b/tests/figs/marginal-histograms/mod-num-cat.svg
deleted file mode 100644
index 89545c4..0000000
--- a/tests/figs/marginal-histograms/mod-num-cat.svg
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/mod-num-num.svg b/tests/figs/marginal-histograms/mod-num-num.svg
deleted file mode 100644
index c405d7c..0000000
--- a/tests/figs/marginal-histograms/mod-num-num.svg
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/mod-num-pred-train.svg b/tests/figs/marginal-histograms/mod-num-pred-train.svg
deleted file mode 100644
index 76dc715..0000000
--- a/tests/figs/marginal-histograms/mod-num-pred-train.svg
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/mod-num-pred.svg b/tests/figs/marginal-histograms/mod-num-pred.svg
deleted file mode 100644
index f6f317b..0000000
--- a/tests/figs/marginal-histograms/mod-num-pred.svg
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-long-cat-fill.svg b/tests/figs/marginal-histograms/plot-hist-long-cat-fill.svg
deleted file mode 100644
index fb9cc91..0000000
--- a/tests/figs/marginal-histograms/plot-hist-long-cat-fill.svg
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-long-cat.svg b/tests/figs/marginal-histograms/plot-hist-long-cat.svg
deleted file mode 100644
index f266b14..0000000
--- a/tests/figs/marginal-histograms/plot-hist-long-cat.svg
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-long-num-has-fill.svg b/tests/figs/marginal-histograms/plot-hist-long-num-has-fill.svg
deleted file mode 100644
index 02637ef..0000000
--- a/tests/figs/marginal-histograms/plot-hist-long-num-has-fill.svg
+++ /dev/null
@@ -1,282 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-long-num-is-fill.svg b/tests/figs/marginal-histograms/plot-hist-long-num-is-fill.svg
deleted file mode 100644
index 8783c07..0000000
--- a/tests/figs/marginal-histograms/plot-hist-long-num-is-fill.svg
+++ /dev/null
@@ -1,985 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-long-num.svg b/tests/figs/marginal-histograms/plot-hist-long-num.svg
deleted file mode 100644
index c1a4a1e..0000000
--- a/tests/figs/marginal-histograms/plot-hist-long-num.svg
+++ /dev/null
@@ -1,282 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-wide-cat.svg b/tests/figs/marginal-histograms/plot-hist-wide-cat.svg
deleted file mode 100644
index 4a7d594..0000000
--- a/tests/figs/marginal-histograms/plot-hist-wide-cat.svg
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
diff --git a/tests/figs/marginal-histograms/plot-hist-wide-num.svg b/tests/figs/marginal-histograms/plot-hist-wide-num.svg
deleted file mode 100644
index b1c70b4..0000000
--- a/tests/figs/marginal-histograms/plot-hist-wide-num.svg
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
diff --git a/tests/figs/plot-condensation/cond-price-first.svg b/tests/figs/plot-condensation/cond-price-first.svg
deleted file mode 100644
index 69798cc..0000000
--- a/tests/figs/plot-condensation/cond-price-first.svg
+++ /dev/null
@@ -1,179 +0,0 @@
-
-
diff --git a/tests/figs/plot-condensation/cond-with-first.svg b/tests/figs/plot-condensation/cond-with-first.svg
deleted file mode 100644
index d790881..0000000
--- a/tests/figs/plot-condensation/cond-with-first.svg
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
diff --git a/tests/figs/plot-condensation/cond.svg b/tests/figs/plot-condensation/cond.svg
deleted file mode 100644
index 472f658..0000000
--- a/tests/figs/plot-condensation/cond.svg
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
diff --git a/tests/figs/plot-imp/plot-imp.svg b/tests/figs/plot-imp/plot-imp.svg
deleted file mode 100644
index 3d4ba07..0000000
--- a/tests/figs/plot-imp/plot-imp.svg
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
diff --git a/tests/testthat/_snaps/alluvial_long/long-all-nums-plus-fill.svg b/tests/testthat/_snaps/alluvial_long/long-all-nums-plus-fill.svg
new file mode 100644
index 0000000..c350e89
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-all-nums-plus-fill.svg
@@ -0,0 +1,412 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-all-nums.svg b/tests/testthat/_snaps/alluvial_long/long-all-nums.svg
new file mode 100644
index 0000000..adbd67f
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-all-nums.svg
@@ -0,0 +1,295 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-carrier.svg b/tests/testthat/_snaps/alluvial_long/long-fill-carrier.svg
new file mode 100644
index 0000000..fc8ecd1
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-fill-carrier.svg
@@ -0,0 +1,567 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-first.svg b/tests/testthat/_snaps/alluvial_long/long-fill-first.svg
new file mode 100644
index 0000000..cfad318
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-fill-first.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-last.svg b/tests/testthat/_snaps/alluvial_long/long-fill-last.svg
new file mode 100644
index 0000000..3ae582d
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-fill-last.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-to-right.svg b/tests/testthat/_snaps/alluvial_long/long-fill-to-right.svg
new file mode 100644
index 0000000..cab4554
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-fill-to-right.svg
@@ -0,0 +1,567 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-value.svg b/tests/testthat/_snaps/alluvial_long/long-fill-value.svg
new file mode 100644
index 0000000..6cf83f9
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-fill-value.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-reorder-carrier-by-size.svg b/tests/testthat/_snaps/alluvial_long/long-reorder-carrier-by-size.svg
new file mode 100644
index 0000000..8943489
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-reorder-carrier-by-size.svg
@@ -0,0 +1,567 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-reorder-x-levels.svg b/tests/testthat/_snaps/alluvial_long/long-reorder-x-levels.svg
new file mode 100644
index 0000000..37df9bd
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-reorder-x-levels.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-reorder-y-levels.svg b/tests/testthat/_snaps/alluvial_long/long-reorder-y-levels.svg
new file mode 100644
index 0000000..6e2f3b9
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-reorder-y-levels.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_long/long-sprecify-color.svg b/tests/testthat/_snaps/alluvial_long/long-sprecify-color.svg
new file mode 100644
index 0000000..45c2ea6
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_long/long-sprecify-color.svg
@@ -0,0 +1,141 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-all-facs.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-all-facs.svg
new file mode 100644
index 0000000..55cbb92
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-all-facs.svg
@@ -0,0 +1,209 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-all-nums.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-all-nums.svg
new file mode 100644
index 0000000..b06c1a8
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-all-nums.svg
@@ -0,0 +1,579 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-cat-bi.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-bi.svg
new file mode 100644
index 0000000..e1e447b
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-bi.svg
@@ -0,0 +1,361 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-cat-multi.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-multi.svg
new file mode 100644
index 0000000..0b95a4c
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-multi.svg
@@ -0,0 +1,538 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-3.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-3.svg
new file mode 100644
index 0000000..e30222d
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-3.svg
@@ -0,0 +1,485 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-7.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-7.svg
new file mode 100644
index 0000000..a220ac3
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-7.svg
@@ -0,0 +1,1342 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-new-labs.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-new-labs.svg
new file mode 100644
index 0000000..ba094c3
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-new-labs.svg
@@ -0,0 +1,560 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-pdb-non-binary.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb-non-binary.svg
new file mode 100644
index 0000000..9e3d24c
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb-non-binary.svg
@@ -0,0 +1,538 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-pdb.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb.svg
new file mode 100644
index 0000000..75a257c
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb.svg
@@ -0,0 +1,414 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response.svg b/tests/testthat/_snaps/alluvial_model_response/model-response.svg
new file mode 100644
index 0000000..8be51cd
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_model_response/model-response.svg
@@ -0,0 +1,414 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-all-flows.svg b/tests/testthat/_snaps/alluvial_wide/wide-all-flows.svg
new file mode 100644
index 0000000..d821612
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-all-flows.svg
@@ -0,0 +1,233 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-first.svg b/tests/testthat/_snaps/alluvial_wide/wide-first.svg
new file mode 100644
index 0000000..0f10769
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-first.svg
@@ -0,0 +1,233 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-islr-cars-rotate-labels.svg b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars-rotate-labels.svg
new file mode 100644
index 0000000..1eea55a
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars-rotate-labels.svg
@@ -0,0 +1,459 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-islr-cars.svg b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars.svg
new file mode 100644
index 0000000..f94ddfe
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars.svg
@@ -0,0 +1,459 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-last.svg b/tests/testthat/_snaps/alluvial_wide/wide-last.svg
new file mode 100644
index 0000000..13765c1
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-last.svg
@@ -0,0 +1,233 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-reorder-y-levels.svg b/tests/testthat/_snaps/alluvial_wide/wide-reorder-y-levels.svg
new file mode 100644
index 0000000..b51c175
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-reorder-y-levels.svg
@@ -0,0 +1,233 @@
+
+
diff --git a/tests/testthat/_snaps/alluvial_wide/wide-values.svg b/tests/testthat/_snaps/alluvial_wide/wide-values.svg
new file mode 100644
index 0000000..cb5fab2
--- /dev/null
+++ b/tests/testthat/_snaps/alluvial_wide/wide-values.svg
@@ -0,0 +1,233 @@
+
+
diff --git a/tests/testthat/_snaps/plot_condensation/cond-price-first.svg b/tests/testthat/_snaps/plot_condensation/cond-price-first.svg
new file mode 100644
index 0000000..7eac59d
--- /dev/null
+++ b/tests/testthat/_snaps/plot_condensation/cond-price-first.svg
@@ -0,0 +1,182 @@
+
+
diff --git a/tests/testthat/_snaps/plot_condensation/cond-with-first.svg b/tests/testthat/_snaps/plot_condensation/cond-with-first.svg
new file mode 100644
index 0000000..51513e3
--- /dev/null
+++ b/tests/testthat/_snaps/plot_condensation/cond-with-first.svg
@@ -0,0 +1,190 @@
+
+
diff --git a/tests/testthat/_snaps/plot_condensation/cond.svg b/tests/testthat/_snaps/plot_condensation/cond.svg
new file mode 100644
index 0000000..77d5d57
--- /dev/null
+++ b/tests/testthat/_snaps/plot_condensation/cond.svg
@@ -0,0 +1,190 @@
+
+
diff --git a/tests/testthat/_snaps/plot_imp/plot-imp.new.svg b/tests/testthat/_snaps/plot_imp/plot-imp.new.svg
new file mode 100644
index 0000000..b82ec09
--- /dev/null
+++ b/tests/testthat/_snaps/plot_imp/plot-imp.new.svg
@@ -0,0 +1,106 @@
+
+
diff --git a/tests/testthat/_snaps/plot_imp/plot-imp.svg b/tests/testthat/_snaps/plot_imp/plot-imp.svg
new file mode 100644
index 0000000..bf7144f
--- /dev/null
+++ b/tests/testthat/_snaps/plot_imp/plot-imp.svg
@@ -0,0 +1,106 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.new.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.new.svg
new file mode 100644
index 0000000..454ecb2
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.new.svg
@@ -0,0 +1,102 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.svg
new file mode 100644
index 0000000..4da40f5
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.svg
@@ -0,0 +1,102 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.new.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.new.svg
new file mode 100644
index 0000000..434399f
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.new.svg
@@ -0,0 +1,76 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.svg
new file mode 100644
index 0000000..fa84a4f
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.svg
@@ -0,0 +1,76 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-cat.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-cat.svg
new file mode 100644
index 0000000..7a350ca
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-cat.svg
@@ -0,0 +1,45 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-num.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-num.svg
new file mode 100644
index 0000000..de30d51
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-num.svg
@@ -0,0 +1,76 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred-train.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred-train.svg
new file mode 100644
index 0000000..5bc26b2
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred-train.svg
@@ -0,0 +1,175 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred.svg
new file mode 100644
index 0000000..b18f5c4
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred.svg
@@ -0,0 +1,168 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat-fill.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat-fill.svg
new file mode 100644
index 0000000..401a273
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat-fill.svg
@@ -0,0 +1,59 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat.svg
new file mode 100644
index 0000000..f745d79
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat.svg
@@ -0,0 +1,37 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-has-fill.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-has-fill.svg
new file mode 100644
index 0000000..a354251
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-has-fill.svg
@@ -0,0 +1,288 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-is-fill.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-is-fill.svg
new file mode 100644
index 0000000..67f105f
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-is-fill.svg
@@ -0,0 +1,991 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num.svg
new file mode 100644
index 0000000..026d579
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num.svg
@@ -0,0 +1,288 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-cat.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-cat.svg
new file mode 100644
index 0000000..bdcaa23
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-cat.svg
@@ -0,0 +1,39 @@
+
+
diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-num.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-num.svg
new file mode 100644
index 0000000..a19886e
--- /dev/null
+++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-num.svg
@@ -0,0 +1,84 @@
+
+
diff --git a/tests/testthat/test_plot_imp.R b/tests/testthat/test_plot_imp.R
index a3b08fb..31bd196 100644
--- a/tests/testthat/test_plot_imp.R
+++ b/tests/testthat/test_plot_imp.R
@@ -17,7 +17,9 @@ test_that('plot_imp'
p_imp = plot_imp(p, df)
- expect_doppelganger('plot_imp', p_imp)
+ # we do not test snapshot, feature importance
+ # is not stable for different versions of R and used packages
+ expect_true( 'ggplot' %in% class(p_imp) )
})
diff --git a/tests/testthat/test_plot_marginal_histograms.R b/tests/testthat/test_plot_marginal_histograms.R
index 0490e32..929c1bc 100644
--- a/tests/testthat/test_plot_marginal_histograms.R
+++ b/tests/testthat/test_plot_marginal_histograms.R
@@ -132,13 +132,21 @@ test_that("plot_hist_margins_model_respons" ,{
p_mod_cat = alluvial_model_response_caret(train, df, degree = 3)
p = plot_hist('pred', p_mod_cat, df, pred_train = predict(train, mtcars2))
- expect_doppelganger('mod_cat_pred_train', p)
+ # not stable across R and package versions
+ # expect_doppelganger('mod_cat_pred_train', p)
+
+ expect_true("ggplot" %in% class(p))
p = plot_hist('pred', p_mod_cat, df )
- expect_doppelganger('mod_cat_pred', p)
+ # not stable across R and package versions
+ # expect_doppelganger('mod_cat_pred', p)
+
+ expect_true("ggplot" %in% class(p))
p_grid = add_marginal_histograms(p_mod_cat, df, keep_labels = T, pred_train = predict(train, mtcars2), plot = F )
-
+
+ expect_true("gtable" %in% class(p_grid))
+
# gtables not yet supported by vdiffr
# expect_doppelganger('marg_hist_mod_cat_pred_train', p_grid)
diff --git a/vignettes/data_exploration.Rmd b/vignettes/data_exploration.Rmd
index 33b4d1c..43aa308 100644
--- a/vignettes/data_exploration.Rmd
+++ b/vignettes/data_exploration.Rmd
@@ -24,7 +24,11 @@ Alluvial plots are a form of [sankey diagrams](https://en.wikipedia.org/wiki/San
```{r}
suppressPackageStartupMessages( require(easyalluvial) )
-suppressPackageStartupMessages( require(tidyverse) )
+suppressPackageStartupMessages( require(tibble) )
+suppressPackageStartupMessages( require(dplyr) )
+suppressPackageStartupMessages( require(ggplot2) )
+suppressPackageStartupMessages( require(forcats) )
+suppressPackageStartupMessages( require(purrr) )
```
diff --git a/vignettes/model_response.Rmd b/vignettes/model_response.Rmd
index ca52b73..147562c 100644
--- a/vignettes/model_response.Rmd
+++ b/vignettes/model_response.Rmd
@@ -9,12 +9,14 @@ editor_options:
---
```{r}
-suppressPackageStartupMessages( library(tidyverse) )
+suppressPackageStartupMessages( library(dplyr) )
suppressPackageStartupMessages( library(easyalluvial) )
suppressPackageStartupMessages( library(mlbench) )
suppressPackageStartupMessages( library(randomForest) )
suppressPackageStartupMessages( library(recipes) )
suppressPackageStartupMessages( library(earth) )
+suppressPackageStartupMessages( library(parcats) )
+
```
diff --git a/vignettes/parcats.Rmd b/vignettes/parcats.Rmd
index 1e1ee22..bbce501 100644
--- a/vignettes/parcats.Rmd
+++ b/vignettes/parcats.Rmd
@@ -21,7 +21,7 @@ install.packages('parcats')
## Examples
```{r}
-suppressPackageStartupMessages( require(tidyverse) )
+suppressPackageStartupMessages( require(dplyr) )
suppressPackageStartupMessages( require(easyalluvial) )
suppressPackageStartupMessages( require(parcats) )