diff --git a/.github/workflows/R-CMD-check-devel.yaml b/.github/workflows/R-CMD-check-devel.yaml index 417bd687..5a9b1b44 100644 --- a/.github/workflows/R-CMD-check-devel.yaml +++ b/.github/workflows/R-CMD-check-devel.yaml @@ -31,7 +31,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" needs: check extra-packages: | any::rcmdcheck diff --git a/.github/workflows/R-CMD-check-hard.yaml b/.github/workflows/R-CMD-check-hard.yaml index 9c20c879..7174722e 100644 --- a/.github/workflows/R-CMD-check-hard.yaml +++ b/.github/workflows/R-CMD-check-hard.yaml @@ -36,7 +36,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" dependencies: '"hard"' cache: false extra-packages: | diff --git a/.github/workflows/R-CMD-check-strict.yaml b/.github/workflows/R-CMD-check-strict.yaml deleted file mode 100644 index b974ffa9..00000000 --- a/.github/workflows/R-CMD-check-strict.yaml +++ /dev/null @@ -1,62 +0,0 @@ -# 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 -# -# R CMD Check will fail on NOTE. -on: - push: - branches: [main, master] - pull_request: - branches: [main, master] - schedule: - # * is a special character in YAML so you have to quote this string - # Trigger once a week at 00:00 on Sunday - - cron: "0 0 * * SUN" - -name: R-CMD-check-strict - -jobs: - R-CMD-check-strict: - runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - - strategy: - fail-fast: false - matrix: - config: - # CRAN does not provide macOS binaries for R-devel, so some packages - # need to be built from source. To avoid that, use R-release. - - { os: macos-latest, r: "release" } - - { os: windows-latest, r: "devel" } - - { os: ubuntu-latest, r: "devel" } - - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - R_KEEP_PKG_SOURCE: yes - _R_CHECK_CRAN_INCOMING_REMOTE_: true - _R_CHECK_CRAN_INCOMING_: false - - steps: - - uses: actions/checkout@v4 - - - uses: r-lib/actions/setup-pandoc@v2 - with: - pandoc-version: "latest" - - - uses: r-lib/actions/setup-r@v2 - with: - r-version: ${{ matrix.config.r }} - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - pak-version: devel - upgrade: 'TRUE' - needs: check - extra-packages: | - any::rcmdcheck - - - uses: r-lib/actions/check-r-package@v2 - with: - upload-snapshots: true - upload-results: true - error-on: '"note"' diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 7a3ed371..0880a3eb 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -8,6 +8,10 @@ on: name: R-CMD-check +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} @@ -18,20 +22,28 @@ jobs: fail-fast: false matrix: config: - # Checks are not run on R-devel because they are already run in - # `R-CMD-check-strict` workflow - - #- { os: macos-latest, r: "devel" } - - { os: macos-latest, r: "release" } - - { os: macos-latest, r: "oldrel-1" } + #- {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: "devel" } + #- { os: windows-latest, r: "next" } + - { os: windows-latest, r: "devel" } - { os: windows-latest, r: "release" } - - { os: windows-latest, r: "oldrel-1" } + - { os: windows-latest, r: "oldrel" } + #- {os: windows-latest, r: 'oldrel-2'} + #- {os: windows-latest, r: 'oldrel-3'} - #- { os: ubuntu-latest, r: "devel" } - #- { os: ubuntu-latest, r: "release" } - #- { os: ubuntu-latest, r: "oldrel-1" } + # 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-2" } + # - { os: ubuntu-latest, r: "oldrel-3" } env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -52,11 +64,27 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel + cache-version: 10 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 + upload-results: true + error-on: 'ifelse(getRversion() > "4.3", "note", "warning")' + env: + _R_CHECK_CRAN_INCOMING_REMOTE_: false + _R_CHECK_CRAN_INCOMING_: false + _R_CHECK_FORCE_SUGGESTS_: false + _R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_: true diff --git a/.github/workflows/check-all-examples.yaml b/.github/workflows/check-all-examples.yaml index ba24579e..d6ae0eb8 100644 --- a/.github/workflows/check-all-examples.yaml +++ b/.github/workflows/check-all-examples.yaml @@ -36,7 +36,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | any::devtools local::. diff --git a/.github/workflows/check-link-rot.yaml b/.github/workflows/check-link-rot.yaml index d10c474d..69179ba8 100644 --- a/.github/workflows/check-link-rot.yaml +++ b/.github/workflows/check-link-rot.yaml @@ -31,7 +31,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" dependencies: '"hard"' extra-packages: | any::rcmdcheck diff --git a/.github/workflows/check-random-test-order.yaml b/.github/workflows/check-random-test-order.yaml index 55dfd62c..f91969b8 100644 --- a/.github/workflows/check-random-test-order.yaml +++ b/.github/workflows/check-random-test-order.yaml @@ -24,7 +24,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | local::. diff --git a/.github/workflows/check-readme.yaml b/.github/workflows/check-readme.yaml index 3f5a1121..67f1df18 100644 --- a/.github/workflows/check-readme.yaml +++ b/.github/workflows/check-readme.yaml @@ -41,7 +41,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | local::. any::gghalves diff --git a/.github/workflows/check-spelling.yaml b/.github/workflows/check-spelling.yaml index c79d7f80..6740b47b 100644 --- a/.github/workflows/check-spelling.yaml +++ b/.github/workflows/check-spelling.yaml @@ -30,7 +30,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" dependencies: '"hard"' extra-packages: | any::rcmdcheck diff --git a/.github/workflows/check-styling.yaml b/.github/workflows/check-styling.yaml index 4e79ce89..abf1b2fa 100644 --- a/.github/workflows/check-styling.yaml +++ b/.github/workflows/check-styling.yaml @@ -26,7 +26,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" dependencies: '"hard"' extra-packages: | local::. diff --git a/.github/workflows/check-test-warnings.yaml b/.github/workflows/check-test-warnings.yaml index f17812e6..46af9ef4 100644 --- a/.github/workflows/check-test-warnings.yaml +++ b/.github/workflows/check-test-warnings.yaml @@ -28,7 +28,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | local::. any::devtools diff --git a/.github/workflows/check-vignette-warnings.yaml b/.github/workflows/check-vignette-warnings.yaml index d378981a..93204ff4 100644 --- a/.github/workflows/check-vignette-warnings.yaml +++ b/.github/workflows/check-vignette-warnings.yaml @@ -32,7 +32,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | local::. diff --git a/.github/workflows/html-5-check.yaml b/.github/workflows/html-5-check.yaml index 36acbd80..35503027 100644 --- a/.github/workflows/html-5-check.yaml +++ b/.github/workflows/html-5-check.yaml @@ -25,7 +25,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | any::rcmdcheck any::V8 diff --git a/.github/workflows/lint-changed-files.yaml b/.github/workflows/lint-changed-files.yaml index c270947a..1a860c26 100644 --- a/.github/workflows/lint-changed-files.yaml +++ b/.github/workflows/lint-changed-files.yaml @@ -37,12 +37,11 @@ jobs: changed_files <- purrr::map_chr(files, "filename") all_files <- list.files(recursive = TRUE) exclusions_list <- as.list(setdiff(all_files, changed_files)) - lint_package(linters = linters_with_defaults( + lint_package(linters = all_linters( absolute_path_linter = NULL, assignment_linter = NULL, commented_code_linter = NULL, cyclocomp_linter(25L), - extraction_operator_linter = NULL, if_not_else_linter(exceptions = character(0L)), implicit_integer_linter = NULL, library_call_linter = NULL, @@ -58,8 +57,7 @@ jobs: undesirable_function_linter = NULL, undesirable_operator_linter = NULL, unnecessary_concatenation_linter(allow_single_expression = FALSE), - unused_import_linter = NULL, - defaults = linters_with_tags(tags = NULL) + unused_import_linter = NULL ), exclusions = exclusions_list) shell: Rscript {0} env: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f6951746..3371f801 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,7 +27,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | r-lib/lintr local::. @@ -39,13 +39,11 @@ jobs: run: | options(crayon.enabled = TRUE) library(lintr) - lint_package(linters = linters_with_tags( - tags = NULL, + lint_package(linters = all_linters( absolute_path_linter = NULL, assignment_linter = NULL, commented_code_linter = NULL, cyclocomp_linter(25L), - extraction_operator_linter = NULL, if_not_else_linter(exceptions = character(0L)), implicit_integer_linter = NULL, library_call_linter = NULL, diff --git a/.github/workflows/pkgdown-no-suggests.yaml b/.github/workflows/pkgdown-no-suggests.yaml index 9676ba63..767bead5 100644 --- a/.github/workflows/pkgdown-no-suggests.yaml +++ b/.github/workflows/pkgdown-no-suggests.yaml @@ -34,7 +34,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" dependencies: '"hard"' cache: false extra-packages: | diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 48cdafba..359e0273 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -34,7 +34,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | r-lib/pkgdown local::. diff --git a/.github/workflows/styler.yaml b/.github/workflows/styler.yaml index 58f021fb..302f4570 100644 --- a/.github/workflows/styler.yaml +++ b/.github/workflows/styler.yaml @@ -24,7 +24,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" dependencies: '"hard"' extra-packages: | local::. diff --git a/.github/workflows/test-coverage-examples.yaml b/.github/workflows/test-coverage-examples.yaml index 9e5457b5..0c81b506 100644 --- a/.github/workflows/test-coverage-examples.yaml +++ b/.github/workflows/test-coverage-examples.yaml @@ -26,7 +26,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | any::covr local::. diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index beb317ac..b918c0b2 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -25,7 +25,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: pak-version: devel - upgrade: 'TRUE' + upgrade: "TRUE" extra-packages: | any::covr needs: coverage diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 757c5834..96c6bdad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ default_language_version: repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.3.2.9003 + rev: v0.4.2 hooks: - id: no-browser-statement - id: no-debug-statement @@ -14,7 +14,7 @@ repos: - id: deps-in-desc - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-json @@ -30,7 +30,7 @@ repos: )$ - repo: https://github.com/lorenzwalthert/gitignore-tidy - rev: "475bf5d96927a1887ce2863ff3075b1d7240bc51" + rev: "0.1.2" hooks: - id: tidy-gitignore diff --git a/CITATION.cff b/CITATION.cff index 45565811..e39a8b67 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -206,7 +206,7 @@ references: abstract: 'effectsize: Indices of Effect Size' notes: Imports url: https://easystats.github.io/effectsize/ - repository: https://easystats.r-universe.dev + repository: https://CRAN.R-project.org/package=effectsize authors: - family-names: Ben-Shachar given-names: Mattan S. @@ -237,7 +237,7 @@ references: email: philip.waggoner@gmail.com orcid: https://orcid.org/0000-0002-7825-7573 year: '2024' - version: '>= 0.8.7' + version: '>= 0.8.8' - type: software title: glue abstract: 'glue: Interpreted String Literals' @@ -253,6 +253,7 @@ references: email: jenny@posit.co orcid: https://orcid.org/0000-0002-6983-2759 year: '2024' + version: '>= 1.7.0' - type: software title: insight abstract: 'insight: Easy Access to Model Information for Various Model Objects' @@ -292,8 +293,8 @@ references: given-names: Etienne email: etienne.bacher@protonmail.com orcid: https://orcid.org/0000-0002-9271-5075 + version: '>= 0.19.10' year: '2024' - version: '>= 0.19.9' - type: software title: magrittr abstract: 'magrittr: A Forward-Pipe Operator for R' @@ -308,6 +309,7 @@ references: given-names: Hadley email: hadley@rstudio.com year: '2024' + version: '>= 2.0.3' - type: software title: parameters abstract: 'parameters: Processing of Model Parameters' @@ -345,7 +347,7 @@ references: abstract: 'performance: Assessment of Regression Models Performance' notes: Imports url: https://easystats.github.io/performance/ - repository: https://easystats.r-universe.dev + repository: https://CRAN.R-project.org/package=performance authors: - family-names: Lüdecke given-names: Daniel @@ -376,7 +378,7 @@ references: email: remi.theriault@mail.mcgill.ca orcid: https://orcid.org/0000-0003-4315-6788 year: '2024' - version: '>= 0.10.9' + version: '>= 0.11.0' - type: software title: PMCMRplus abstract: 'PMCMRplus: Calculate Pairwise Multiple Comparisons of Mean Rank Sums @@ -389,6 +391,7 @@ references: email: thorsten.pohlert@gmx.de orcid: https://orcid.org/0000-0003-3855-3025 year: '2024' + version: '>= 1.9.10' - type: software title: purrr abstract: 'purrr: Functional Programming Tools' @@ -419,6 +422,7 @@ references: given-names: Hadley email: hadley@posit.co year: '2024' + version: '>= 1.1.3' - type: software title: stats abstract: 'R: A Language and Environment for Statistical Computing' @@ -501,6 +505,7 @@ references: given-names: Rand email: rwilcox@usc.edu year: '2024' + version: '>= 1.1-6' - type: software title: zeallot abstract: 'zeallot: Multiple, Unpacking, and Destructuring Assignment' @@ -512,6 +517,7 @@ references: given-names: Nathan email: nathanteetor@gmail.com year: '2024' + version: '>= 0.1.0' - type: software title: bayestestR abstract: 'bayestestR: Understand and Describe Bayesian Models and Posterior Distributions' diff --git a/DESCRIPTION b/DESCRIPTION index d69d3359..aff30f7f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -30,21 +30,21 @@ Imports: correlation (>= 0.8.4), datawizard (>= 0.10.0), dplyr (>= 1.1.4), - effectsize (>= 0.8.7), - glue, - insight (>= 0.19.9), - magrittr, + effectsize (>= 0.8.8), + glue (>= 1.7.0), + insight (>= 0.19.10), + magrittr (>= 2.0.3), parameters (>= 0.21.6), - performance (>= 0.10.9), - PMCMRplus, + performance (>= 0.11.0), + PMCMRplus (>= 1.9.10), purrr (>= 1.0.2), - rlang, + rlang (>= 1.1.3), stats, tibble (>= 3.2.1), tidyr (>= 1.3.1), withr (>= 3.0.0), - WRS2, - zeallot + WRS2 (>= 1.1-6), + zeallot (>= 0.1.0) Suggests: bayestestR (>= 0.13.2), ggplot2, diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..52a92fc6 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +PKGNAME = `sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION` +PKGVERS = `sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION` + +all: check + +build: install_deps + R CMD build . + +check: build + R CMD check --no-manual $(PKGNAME)_$(PKGVERS).tar.gz + +install_deps: + Rscript \ + -e 'if (!requireNamespace("remotes")) install.packages("remotes")' \ + -e 'remotes::install_deps(dependencies = TRUE)' + +install: build + R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz + +clean: + @rm -rf $(PKGNAME)_$(PKGVERS).tar.gz $(PKGNAME).Rcheck + +update_deps: + Rscript \ + -e 'options(repos = c(CRAN = "https://cran.r-project.org"))' \ + -e 'usethis::use_latest_dependencies(source = "CRAN")' \ + -e 'roxygen2::roxygenise()' \ + -e 'codemetar::write_codemeta()' \ + -e 'cffr::cff_write()' diff --git a/R/oneway-anova.R b/R/oneway-anova.R index 7463cf73..2cf8d4ca 100644 --- a/R/oneway-anova.R +++ b/R/oneway-anova.R @@ -43,7 +43,7 @@ #' #' @autoglobal #' -#' @examplesIf identical(Sys.getenv("NOT_CRAN"), "true") +#' @examplesIf identical(Sys.getenv("NOT_CRAN"), "true") && getRversion() >= "4.4.0" #' # for reproducibility #' set.seed(123) #' library(statsExpressions) @@ -106,7 +106,7 @@ #' type = "r" #' ) #' -#' @examplesIf identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("rstantools", quietly = TRUE) +#' @examplesIf identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("rstantools") && getRversion() >= "4.4.0" #' #' # ----------------------- Bayesian ------------------------------------- #' diff --git a/codemeta.json b/codemeta.json index 575c83b4..501bf34c 100644 --- a/codemeta.json +++ b/codemeta.json @@ -14,7 +14,7 @@ "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.3.3 (2024-02-29)", + "runtimePlatform": "R version 4.4.0 (2024-04-24)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -253,7 +253,7 @@ "@type": "SoftwareApplication", "identifier": "effectsize", "name": "effectsize", - "version": ">= 0.8.7", + "version": ">= 0.8.8", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -266,6 +266,7 @@ "@type": "SoftwareApplication", "identifier": "glue", "name": "glue", + "version": ">= 1.7.0", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -278,7 +279,7 @@ "@type": "SoftwareApplication", "identifier": "insight", "name": "insight", - "version": ">= 0.19.9", + "version": ">= 0.19.10", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -291,6 +292,7 @@ "@type": "SoftwareApplication", "identifier": "magrittr", "name": "magrittr", + "version": ">= 2.0.3", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -316,7 +318,7 @@ "@type": "SoftwareApplication", "identifier": "performance", "name": "performance", - "version": ">= 0.10.9", + "version": ">= 0.11.0", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -329,6 +331,7 @@ "@type": "SoftwareApplication", "identifier": "PMCMRplus", "name": "PMCMRplus", + "version": ">= 1.9.10", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -354,6 +357,7 @@ "@type": "SoftwareApplication", "identifier": "rlang", "name": "rlang", + "version": ">= 1.1.3", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -410,6 +414,7 @@ "@type": "SoftwareApplication", "identifier": "WRS2", "name": "WRS2", + "version": ">= 1.1-6", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -422,6 +427,7 @@ "@type": "SoftwareApplication", "identifier": "zeallot", "name": "zeallot", + "version": ">= 0.1.0", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -432,7 +438,7 @@ }, "SystemRequirements": null }, - "fileSize": "4135.186KB", + "fileSize": "4135.575KB", "citation": [ { "@type": "ScholarlyArticle", diff --git a/man/figures/README-anova_parametric2-1.png b/man/figures/README-anova_parametric2-1.png index b71cc504..3f6c5bbd 100644 Binary files a/man/figures/README-anova_parametric2-1.png and b/man/figures/README-anova_parametric2-1.png differ diff --git a/man/figures/README-anova_rob1-1.png b/man/figures/README-anova_rob1-1.png index b3593813..7640f481 100644 Binary files a/man/figures/README-anova_rob1-1.png and b/man/figures/README-anova_rob1-1.png differ diff --git a/man/oneway_anova.Rd b/man/oneway_anova.Rd index 9e3962e1..9ba63d7b 100644 --- a/man/oneway_anova.Rd +++ b/man/oneway_anova.Rd @@ -176,7 +176,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") && getRversion() >= "4.4.0") (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} # for reproducibility set.seed(123) library(statsExpressions) @@ -239,7 +239,7 @@ oneway_anova( type = "r" ) \dontshow{\}) # examplesIf} -\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("rstantools", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") && requireNamespace("rstantools") && getRversion() >= "4.4.0") (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} # ----------------------- Bayesian ------------------------------------- diff --git a/tests/testthat/_snaps/centrality-description.md b/tests/testthat/_snaps/centrality-description.md index 45ffd468..54401d39 100644 --- a/tests/testthat/_snaps/centrality-description.md +++ b/tests/testthat/_snaps/centrality-description.md @@ -97,8 +97,8 @@ 12 LDLF 5.72 2.71 4 5.27 6.35 0 10 -0.132 13 HDHF 9.98 NA 4 9.97 9.99 0 10 -1.13 14 HDLF 9.73 NA 5 9.10 9.92 0 10 -0.740 - 15 LDHF 9.85 NA 3.5 9.82 9.97 0.5 10 -0.947 - 16 LDLF 5.99 NA 4 5.58 6.26 0 10 -0.132 + 15 LDHF 9.86 NA 3.5 9.82 9.97 0.5 10 -0.947 + 16 LDLF 5.99 NA 4 5.59 6.25 0 10 -0.132 kurtosis n.obs missing.obs n.expression mad 1 0.486 92 0 "HDHF\n(n = 92)" NA @@ -166,7 +166,7 @@ list(widehat(mu)[MAP] == "9.73") [[15]] - list(widehat(mu)[MAP] == "9.85") + list(widehat(mu)[MAP] == "9.86") [[16]] list(widehat(mu)[MAP] == "5.99") diff --git a/tests/testthat/test-centrality-description.R b/tests/testthat/test-centrality-description.R index ce7debdb..98231b18 100644 --- a/tests/testthat/test-centrality-description.R +++ b/tests/testthat/test-centrality-description.R @@ -1,4 +1,5 @@ skip_if_not_installed("boot") +skip_if_not(getRversion() >= "4.4.0") test_that( desc = "centrality description works as expected - no missing data", diff --git a/tests/testthat/test-meta-random-bayes.R b/tests/testthat/test-meta-random-bayes.R index 385f09ed..5ac1e3f8 100644 --- a/tests/testthat/test-meta-random-bayes.R +++ b/tests/testthat/test-meta-random-bayes.R @@ -2,6 +2,7 @@ test_that( desc = "meta_analysis works - bayesian", code = { skip_if_not_installed("metaBMA") + skip_if_not(getRversion() >= "4.4.0") set.seed(123) df <- meta_analysis( diff --git a/tests/testthat/test-one-two-sample-dataframes.R b/tests/testthat/test-one-two-sample-dataframes.R index fdc13107..351d8208 100644 --- a/tests/testthat/test-one-two-sample-dataframes.R +++ b/tests/testthat/test-one-two-sample-dataframes.R @@ -1,6 +1,8 @@ test_that( desc = " parametric t-tests", code = { + skip_if_not(getRversion() >= "4.4.0") + # one-sample t-test (with NAs) --------- set.seed(123) diff --git a/tests/testthat/test-oneway-anova-bayes.R b/tests/testthat/test-oneway-anova-bayes.R index 8ebd7f25..8fb5bc80 100644 --- a/tests/testthat/test-oneway-anova-bayes.R +++ b/tests/testthat/test-oneway-anova-bayes.R @@ -1,10 +1,7 @@ # don't test data frames because the values vary across platforms, even with the -# same seed -# -# for the same reason, don't change number of digits - -# to print all tibble columns in the snapshot; don't remove +# same seed; for the same reason, don't change number of digits +skip_if_not(getRversion() >= "4.4.0") # between-subjects ------------------------------