From d6bd41bc8100f4111370274bccb3b4472582906a Mon Sep 17 00:00:00 2001 From: jgabry Date: Fri, 13 Mar 2026 10:54:25 -0600 Subject: [PATCH 1/2] Update snapshots for R 4.5.3 --- .../mcmc-diagnostics/mcmc-neff-default.svg | 182 +++++------ .../mcmc-neff-hist-binwidth.svg | 234 +++++++------- .../mcmc-neff-hist-default.svg | 288 +++++++++--------- .../mcmc-neff-missing-levels.svg | 122 ++++---- .../mcmc-nuts/mcmc-nuts-energy-default.svg | 10 +- .../mcmc-nuts/mcmc-nuts-energy-merged.svg | 8 +- .../ppd-stat-2d-default.svg | 32 +- .../ppd-stat-2d-stat-size-alpha.svg | 32 +- .../ppc-test-statistics/ppd-stat-default.svg | 24 +- .../ppd-stat-discrete-stat.svg | 24 +- .../ppd-stat-freqpoly-grouped-default.svg | 22 +- ...d-stat-freqpoly-grouped-stat-facets-bw.svg | 22 +- .../ppd-stat-grouped-default.svg | 24 +- .../ppd-stat-grouped-discrete-stat.svg | 24 +- ...-stat-grouped-stat-facet-args-binwidth.svg | 24 +- .../ppd-stat-stat-binwidth-freq.svg | 24 +- 16 files changed, 548 insertions(+), 548 deletions(-) diff --git a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-default.svg b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-default.svg index cbf23ff6c..181537b08 100644 --- a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-default.svg +++ b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-default.svg @@ -20,106 +20,106 @@ - - + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - -0 -0.1 -0.25 -0.5 -0.75 -1 -N + + + + + + + + +0 +0.1 +0.25 +0.5 +0.75 +1 +N e f f - -N - - - - - - -N -e -f -f - -N - -0.1 -N -e -f -f - -N - -0.5 -N -e -f -f - -N -> -0.5 + +N + + + + + + +N +e +f +f + +N + +0.1 +N +e +f +f + +N + +0.5 +N +e +f +f + +N +> +0.5 mcmc_neff (default) diff --git a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-binwidth.svg b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-binwidth.svg index 8c2fe3e63..fc1bfeae5 100644 --- a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-binwidth.svg +++ b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-binwidth.svg @@ -20,131 +20,131 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -0.00 -0.25 -0.50 -0.75 + +0.00 +0.25 +0.50 +0.75 1.00 - - - - - - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 -N + + + + + + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 +N e f f - -N - - - -N -e -f -f - -N - -0.1 -N -e -f -f - -N - -0.5 -N -e -f -f - -N -> -0.5 + +N + + + +N +e +f +f + +N + +0.1 +N +e +f +f + +N + +0.5 +N +e +f +f + +N +> +0.5 mcmc_neff_hist (binwidth) diff --git a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-default.svg b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-default.svg index 89485ae37..7ae790079 100644 --- a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-default.svg +++ b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-default.svg @@ -20,158 +20,158 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -0.00 -0.25 -0.50 -0.75 + +0.00 +0.25 +0.50 +0.75 1.00 - - - - - - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 -N + + + + + + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 +N e f f - -N - - - -N -e -f -f - -N - -0.1 -N -e -f -f - -N - -0.5 -N -e -f -f - -N -> -0.5 + +N + + + +N +e +f +f + +N + +0.1 +N +e +f +f + +N + +0.5 +N +e +f +f + +N +> +0.5 mcmc_neff_hist (default) diff --git a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-missing-levels.svg b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-missing-levels.svg index 17467d2c1..a3a9b2ba7 100644 --- a/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-missing-levels.svg +++ b/tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-missing-levels.svg @@ -20,74 +20,74 @@ - - + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - -0 -0.1 -0.25 -0.5 -0.75 -1 -N + + + + + + + + +0 +0.1 +0.25 +0.5 +0.75 +1 +N e f f - -N - - - - - - -N -e -f -f - -N - -0.1 -N -e -f -f - -N - -0.5 -N -e -f -f - -N -> -0.5 + +N + + + + + + +N +e +f +f + +N + +0.1 +N +e +f +f + +N + +0.5 +N +e +f +f + +N +> +0.5 mcmc_neff (missing levels) diff --git a/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-default.svg b/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-default.svg index 4d4c3a36e..45fb70f8d 100644 --- a/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-default.svg +++ b/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-default.svg @@ -242,11 +242,11 @@ -π -E -π -Δ -E +π +E +π +Δ +E mcmc_nuts_energy (default) diff --git a/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-merged.svg b/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-merged.svg index f7eb3bef3..26ce37c8f 100644 --- a/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-merged.svg +++ b/tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-merged.svg @@ -74,10 +74,10 @@ π -E -π -Δ -E +E +π +Δ +E mcmc_nuts_energy (merged) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-default.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-default.svg index 1a4bdfb3f..9fdcc654d 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-default.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-default.svg @@ -72,23 +72,23 @@ 0.2 mean sd -T -= -( -mean -, - -sd -) +T += +( +mean +, + +sd +) -T -( -y -p -r -e -d -) +T +( +y +p +r +e +d +) ppd_stat_2d (default) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-stat-size-alpha.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-stat-size-alpha.svg index 914f1e9a8..9170f5b97 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-stat-size-alpha.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-stat-size-alpha.svg @@ -76,23 +76,23 @@ 0.2 median mad -T -= -( -median -, - -mad -) +T += +( +median +, + +mad +) -T -( -y -p -r -e -d -) +T +( +y +p +r +e +d +) ppd_stat_2d (stat, size, alpha) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-default.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-default.svg index a6c039982..16f1016db 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-default.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-default.svg @@ -56,18 +56,18 @@ 0.1 0.2 0.3 -T -= -mean - -T -( -y -p -r -e -d -) +T += +mean + +T +( +y +p +r +e +d +) ppd_stat (default) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-discrete-stat.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-discrete-stat.svg index d87f232be..4a42b8a79 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-discrete-stat.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-discrete-stat.svg @@ -51,18 +51,18 @@ 0.4 0.5 0.6 -T -= -prop0 - -T -( -y -p -r -e -d -) +T += +prop0 + +T +( +y +p +r +e +d +) ppd_stat (discrete, stat) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-default.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-default.svg index a48bbd943..67de54b58 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-default.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-default.svg @@ -146,18 +146,18 @@ -T -= -mean +T += +mean -T -( -y -p -r -e -d -) +T +( +y +p +r +e +d +) ppd_stat_freqpoly_grouped (default) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-stat-facets-bw.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-stat-facets-bw.svg index 5634658a4..380125c65 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-stat-facets-bw.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-freqpoly-grouped-stat-facets-bw.svg @@ -123,18 +123,18 @@ -T -= -sum +T += +sum -T -( -y -p -r -e -d -) +T +( +y +p +r +e +d +) ppd_stat_freqpoly_grouped (stat, facets, bw) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-default.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-default.svg index f885ae2cd..3aed9cd74 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-default.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-default.svg @@ -209,18 +209,18 @@ -T -= -mean - -T -( -y -p -r -e -d -) +T += +mean + +T +( +y +p +r +e +d +) ppd_stat_grouped (default) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-discrete-stat.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-discrete-stat.svg index 2741e5eb6..e075886fe 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-discrete-stat.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-discrete-stat.svg @@ -93,18 +93,18 @@ 0.5 -T -= -prop0 - -T -( -y -p -r -e -d -) +T += +prop0 + +T +( +y +p +r +e +d +) ppd_stat_grouped (discrete, stat) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-stat-facet-args-binwidth.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-stat-facet-args-binwidth.svg index a17f4351a..d06ddc1c4 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-stat-facet-args-binwidth.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-grouped-stat-facet-args-binwidth.svg @@ -137,18 +137,18 @@ -T -= -stats::var - -T -( -y -p -r -e -d -) +T += +stats::var + +T +( +y +p +r +e +d +) ppd_stat_grouped (stat, facet_args, binwidth) diff --git a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-stat-binwidth-freq.svg b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-stat-binwidth-freq.svg index ebbe2d6ef..fbdcef60d 100644 --- a/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-stat-binwidth-freq.svg +++ b/tests/testthat/_snaps/ppc-test-statistics/ppd-stat-stat-binwidth-freq.svg @@ -58,18 +58,18 @@ 1.1 1.2 1.3 -T -= -mad - -T -( -y -p -r -e -d -) +T += +mad + +T +( +y +p +r +e +d +) ppd_stat (stat, binwidth, freq) From 7a434e391020c4af70b1eff772f069b03b64b4e8 Mon Sep 17 00:00:00 2001 From: jgabry Date: Fri, 13 Mar 2026 11:15:03 -0600 Subject: [PATCH 2/2] Actually skip on oldrel --- .github/workflows/R-CMD-check.yaml | 1 + DESCRIPTION | 2 +- tests/testthat/helper.R | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index db50e2344..0b90ab51d 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -29,6 +29,7 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes + R_VERSION_TYPE: ${{ matrix.config.r }} steps: - uses: actions/checkout@v6 diff --git a/DESCRIPTION b/DESCRIPTION index bdb2a76ab..e6d2cdaba 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -37,7 +37,7 @@ Imports: lifecycle, posterior, reshape2, - rlang (>= 0.3.0), + rlang (>= 1.0.0), stats, tibble (>= 2.0.0), tidyr, diff --git a/tests/testthat/helper.R b/tests/testthat/helper.R index fc870e029..f34b4afee 100644 --- a/tests/testthat/helper.R +++ b/tests/testthat/helper.R @@ -7,7 +7,7 @@ on_r_devel <- function() { isTRUE(Sys.getenv("R_VERSION_TYPE") == "devel") } on_r_oldrel <- function() { - isTRUE(Sys.getenv("R_VERSION_TYPE") == "oldrel") + startsWith(Sys.getenv("R_VERSION_TYPE"), "oldrel") } skip_on_r_devel <- function() {