From b7350e92b4ae447bfa330d81f6f1f34e205678a6 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sun, 10 Nov 2024 22:08:19 +0100 Subject: [PATCH] Bump minimum needed R version (#969) * Check on older R versions * bump min to R 4.3 * Update R-CMD-check.yaml * add news * Apply automatic changes * fix link --------- Co-authored-by: IndrajeetPatil --- .github/workflows/R-CMD-check.yaml | 19 +------------------ DESCRIPTION | 2 +- NEWS.md | 4 ++++ README.Rmd | 14 +++++++------- README.md | 12 ++++++------ man/dot-grouped_list.Rd | 2 +- man/extract_stats.Rd | 2 +- man/ggbarstats.Rd | 2 +- man/ggbetweenstats.Rd | 2 +- man/ggcoefstats.Rd | 2 +- man/ggdotplotstats.Rd | 2 +- man/gghistostats.Rd | 2 +- man/ggpiestats.Rd | 2 +- man/ggwithinstats.Rd | 2 +- man/grouped_ggbarstats.Rd | 2 +- man/grouped_ggbetweenstats.Rd | 2 +- man/grouped_ggdotplotstats.Rd | 2 +- man/grouped_gghistostats.Rd | 2 +- man/grouped_ggpiestats.Rd | 2 +- man/grouped_ggscatterstats.Rd | 2 +- man/grouped_ggwithinstats.Rd | 2 +- vignettes/additional.Rmd | 2 +- 22 files changed, 36 insertions(+), 49 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 18c32c1c5..858792364 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -25,25 +25,16 @@ jobs: #- {os: macOS-latest, r: 'devel'} - { os: macOS-latest, r: "release" } - { os: macOS-latest, r: "oldrel" } - #- {os: macOS-latest, r: 'oldrel-2'} - #- {os: macOS-latest, r: 'oldrel-3'} - #- { os: windows-latest, r: "next" } - { os: windows-latest, r: "devel" } - { os: windows-latest, r: "release" } - { os: windows-latest, r: "oldrel" } - #- {os: windows-latest, r: 'oldrel-2'} - #- {os: windows-latest, r: 'oldrel-3'} - - # use 4.1 to check with rtools40's older compiler - #- { os: windows-latest, r: "4.1" } #- { os: ubuntu-latest, r: "next" } - { os: ubuntu-latest, r: "devel" } - { os: ubuntu-latest, r: "release" } - #- { os: ubuntu-latest, r: "oldrel" } + - { os: ubuntu-latest, r: "oldrel" } #- { os: ubuntu-latest, r: "oldrel-2" } - #- { os: ubuntu-latest, r: "oldrel-3" } env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -67,16 +58,8 @@ jobs: upgrade: 'TRUE' extra-packages: | any::rcmdcheck - Matrix=?ignore-before-r=100.0.0 - lme4=?ignore-before-r=100.0.0 - TMB=?ignore-before-r=100.0.0 needs: check - - name: Install packages from source - run: | - utils::install.packages(c("Matrix", "lme4", "TMB"), type = "source") - shell: Rscript {0} - - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true diff --git a/DESCRIPTION b/DESCRIPTION index eee664b91..f2832bc2f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -29,7 +29,7 @@ URL: https://indrajeetpatil.github.io/ggstatsplot/, https://github.com/IndrajeetPatil/ggstatsplot BugReports: https://github.com/IndrajeetPatil/ggstatsplot/issues Depends: - R (>= 4.1.0) + R (>= 4.3.0) Imports: correlation (>= 0.8.6), datawizard (>= 0.13.0), diff --git a/NEWS.md b/NEWS.md index 03f350fa2..6fda55679 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,10 @@ N.B. All statistical analysis in `{ggstatsplot}` is carried out in read the `NEWS` for that package: +## BREAKING CHANGES + +- The minimum needed R version is now bumped to `R 4.3`. + # ggstatsplot 0.12.5 ## MAJOR CHANGES diff --git a/README.Rmd b/README.Rmd index df3aab714..e6726179d 100644 --- a/README.Rmd +++ b/README.Rmd @@ -56,10 +56,10 @@ details, which makes data exploration simpler and faster. ## Installation -Type | Source | Command ----|---|--- -Release | [![CRAN Status](https://www.r-pkg.org/badges/version/ggstatsplot)](https://cran.r-project.org/package=ggstatsplot) | `install.packages("ggstatsplot")` -Development | [![Project Status](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/##active) | `pak::pak("IndrajeetPatil/ggstatsplot")` +| Type | Command | +| :---------- | :--------------------------------------- | +| Release | `install.packages("ggstatsplot")` | +| Development | `pak::pak("IndrajeetPatil/ggstatsplot")` | ## Citation @@ -98,10 +98,10 @@ version of the package, see: - [Publication](https://joss.theoj.org/papers/10.21105/joss.03167) + - [Presentation](https://indrajeetpatil.github.io/intro-to-ggstatsplot/#/ggstatsplot-informative-statistical-visualizations) + - [Vignettes](https://indrajeetpatil.github.io/ggstatsplot/articles/) - - - [Presentation](https://indrajeetpatil.github.io/ggstatsplot_slides/slides/ggstatsplot_presentation.html#1) - + ## Summary of available plots | Function | Plot | Description | diff --git a/README.md b/README.md index bc66d8cdb..93435ec24 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ makes data exploration simpler and faster. ## Installation -| Type | Source | Command | -|----|----|----| -| Release | [![CRAN Status](https://www.r-pkg.org/badges/version/ggstatsplot)](https://cran.r-project.org/package=ggstatsplot) | `install.packages("ggstatsplot")` | -| Development | [![Project Status](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/##active) | `pak::pak("IndrajeetPatil/ggstatsplot")` | +| Type | Command | +|:------------|:-----------------------------------------| +| Release | `install.packages("ggstatsplot")` | +| Development | `pak::pak("IndrajeetPatil/ggstatsplot")` | ## Citation @@ -89,9 +89,9 @@ To see the detailed documentation for each function in the stable - [Publication](https://joss.theoj.org/papers/10.21105/joss.03167) -- [Vignettes](https://indrajeetpatil.github.io/ggstatsplot/articles/) +- [Presentation](https://indrajeetpatil.github.io/intro-to-ggstatsplot/#/ggstatsplot-informative-statistical-visualizations) -- [Presentation](https://indrajeetpatil.github.io/ggstatsplot_slides/slides/ggstatsplot_presentation.html#1) +- [Vignettes](https://indrajeetpatil.github.io/ggstatsplot/articles/) ## Summary of available plots diff --git a/man/dot-grouped_list.Rd b/man/dot-grouped_list.Rd index d1bfebf7e..f3f2db88f 100644 --- a/man/dot-grouped_list.Rd +++ b/man/dot-grouped_list.Rd @@ -19,7 +19,7 @@ This function splits the data frame into a list, with the length of the list equal to the factor levels of the grouping variable. } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} ggstatsplot:::.grouped_list(ggplot2::msleep, grouping.var = vore) \dontshow{\}) # examplesIf} } diff --git a/man/extract_stats.Rd b/man/extract_stats.Rd index cf45175f2..a49bf6b3e 100644 --- a/man/extract_stats.Rd +++ b/man/extract_stats.Rd @@ -37,7 +37,7 @@ what you want, you shouldn't be using \code{ggcorrmat()} anyway. You can use default. } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} set.seed(123) # non-grouped plot diff --git a/man/ggbarstats.Rd b/man/ggbarstats.Rd index 2b1b46a73..6c330b893 100644 --- a/man/ggbarstats.Rd +++ b/man/ggbarstats.Rd @@ -235,7 +235,7 @@ The table below provides summary about: } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/ggbetweenstats.Rd b/man/ggbetweenstats.Rd index 21ede3694..a5edd0e26 100644 --- a/man/ggbetweenstats.Rd +++ b/man/ggbetweenstats.Rd @@ -400,7 +400,7 @@ Not supported. } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/ggcoefstats.Rd b/man/ggcoefstats.Rd index 308ef80ef..4bf7ad670 100644 --- a/man/ggcoefstats.Rd +++ b/man/ggcoefstats.Rd @@ -222,7 +222,7 @@ The table below provides summary about: } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("lme4", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("lme4", quietly = TRUE)) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) library(lme4) diff --git a/man/ggdotplotstats.Rd b/man/ggdotplotstats.Rd index 280fe04ba..c5b489d86 100644 --- a/man/ggdotplotstats.Rd +++ b/man/ggdotplotstats.Rd @@ -199,7 +199,7 @@ The table below provides summary about: } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/gghistostats.Rd b/man/gghistostats.Rd index ced32fa5c..f2b326705 100644 --- a/man/gghistostats.Rd +++ b/man/gghistostats.Rd @@ -200,7 +200,7 @@ The table below provides summary about: } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/ggpiestats.Rd b/man/ggpiestats.Rd index a7f8fd3f1..3b9bc3e9f 100644 --- a/man/ggpiestats.Rd +++ b/man/ggpiestats.Rd @@ -226,7 +226,7 @@ The table below provides summary about: } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/ggwithinstats.Rd b/man/ggwithinstats.Rd index 37b8c8a17..c011d63f0 100644 --- a/man/ggwithinstats.Rd +++ b/man/ggwithinstats.Rd @@ -409,7 +409,7 @@ Not supported. } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("afex", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("afex", quietly = TRUE)) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) library(dplyr, warn.conflicts = FALSE) diff --git a/man/grouped_ggbarstats.Rd b/man/grouped_ggbarstats.Rd index 283ecd465..490d3512c 100644 --- a/man/grouped_ggbarstats.Rd +++ b/man/grouped_ggbarstats.Rd @@ -136,7 +136,7 @@ For details, see: \url{https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggpiestats.html} } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) library(dplyr, warn.conflicts = FALSE) diff --git a/man/grouped_ggbetweenstats.Rd b/man/grouped_ggbetweenstats.Rd index d282058a5..7110f34a3 100644 --- a/man/grouped_ggbetweenstats.Rd +++ b/man/grouped_ggbetweenstats.Rd @@ -165,7 +165,7 @@ across multiple levels of a given factor and combining the resulting plots using \code{ggstatsplot::combine_plots}. } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/grouped_ggdotplotstats.Rd b/man/grouped_ggdotplotstats.Rd index 602b1fc41..da699c81c 100644 --- a/man/grouped_ggdotplotstats.Rd +++ b/man/grouped_ggdotplotstats.Rd @@ -132,7 +132,7 @@ For details, see: \url{https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggdotplotstats.html} } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) library(dplyr, warn.conflicts = FALSE) diff --git a/man/grouped_gghistostats.Rd b/man/grouped_gghistostats.Rd index 130525040..ed32e5576 100644 --- a/man/grouped_gghistostats.Rd +++ b/man/grouped_gghistostats.Rd @@ -139,7 +139,7 @@ For details, see: \url{https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/gghistostats.html} } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) diff --git a/man/grouped_ggpiestats.Rd b/man/grouped_ggpiestats.Rd index a2ce7bb7a..8d8252b3b 100644 --- a/man/grouped_ggpiestats.Rd +++ b/man/grouped_ggpiestats.Rd @@ -132,7 +132,7 @@ For details, see: \url{https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggpiestats.html} } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} set.seed(123) # grouped one-sample proportion test grouped_ggpiestats(mtcars, x = cyl, grouping.var = am) diff --git a/man/grouped_ggscatterstats.Rd b/man/grouped_ggscatterstats.Rd index 064da7bda..f4c4c7f57 100644 --- a/man/grouped_ggscatterstats.Rd +++ b/man/grouped_ggscatterstats.Rd @@ -125,7 +125,7 @@ For details, see: \url{https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggscatterstats.html} } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true")) withAutoprint(\{ # examplesIf} # to ensure reproducibility set.seed(123) diff --git a/man/grouped_ggwithinstats.Rd b/man/grouped_ggwithinstats.Rd index 65d3ff87a..3efc44341 100644 --- a/man/grouped_ggwithinstats.Rd +++ b/man/grouped_ggwithinstats.Rd @@ -168,7 +168,7 @@ separately specified here.} A combined plot of comparison plot created for levels of a grouping variable. } \examples{ -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("afex", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("afex", quietly = TRUE)) withAutoprint(\{ # examplesIf} # for reproducibility set.seed(123) library(dplyr, warn.conflicts = FALSE) diff --git a/vignettes/additional.Rmd b/vignettes/additional.Rmd index 9ac12cdba..f2c16840f 100644 --- a/vignettes/additional.Rmd +++ b/vignettes/additional.Rmd @@ -65,7 +65,7 @@ A journal articles describing philosophy and principles behind this package: In addition to these vignettes, another quick way to get an overview of this package is to go through the following slides: - + ## Statistical backend of `{ggstatsplot}`