Skip to content

Commit

Permalink
RC CRAN 0.10.0 (#811)
Browse files Browse the repository at this point in the history
* bump version for CRAN; rm library calls

* docs

* Address `unnecessary_placeholder_linter()` lints

* minor code cleanup

* Update utils.R

* Create check-link-rot.yaml

* Update check-link-rot.yaml

* Update check-link-rot.yaml

* Update check-link-rot.yaml

* minor

* Create pkgdown-no-suggests.yaml

* yaml formatting

* Create check-all-examples.yaml

* fix pkgdown no suggests

* fix pkgdown issue

* fix pkgdown and lint issues

* fix more pkgdown no suggests

* DRY vignette setup

* Update ggbetweenstats.Rmd

* sync up actions

* bump easystats versions

* start DRYing up vignettes

* for `ggwithinstats()`

* reporting

* fix?

* more functions

* add rest of the fragments

* add examples for `extract_stats()`
  • Loading branch information
IndrajeetPatil authored Nov 27, 2022
1 parent 80cf42e commit 2a7ee97
Show file tree
Hide file tree
Showing 104 changed files with 1,713 additions and 2,532 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
^docs$
^revdep$
publication/*
^codecov\.yml$
^codecov\.yaml$
^\.coveralls\.yml$
^\.travis\.yml$
^_pkgdown\.yml$
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
matrix:
config:
#- {os: macos-latest, r: 'devel'}
- {os: macos-latest, r: 'release'}
- {os: macos-latest, r: 'oldrel-1'}
- { os: macos-latest, r: "release" }
- { os: macos-latest, r: "oldrel-1" }

- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel-1'}
- { os: windows-latest, r: "devel" }
- { os: windows-latest, r: "release" }
- { os: windows-latest, r: "oldrel-1" }

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

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,7 +40,7 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.19.2'
pandoc-version: "2.19.2"

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/check-all-examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Make sure all examples run successfully, even the ones that are not supposed
# to be run or tested on CRAN machines by default.
#
# The examples that fail should use
# - `if (FALSE) { ... }` (if example is included only for illustrative purposes)
# - `try({ ... })` (if the intent is to show the error)
#
# This workflow helps find such failing examples that need to be modified.

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: check-all-examples

jobs:
check-all-examples:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- 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:
pak-version: devel
extra-packages: |
any::devtools
local::.
- name: Run examples
run: |
options(crayon.enabled = TRUE)
devtools::run_examples(fresh = TRUE, run_dontrun = TRUE, run_donttest = TRUE)
shell: Rscript {0}
43 changes: 43 additions & 0 deletions .github/workflows/check-link-rot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: check-link-rot

jobs:
check-link-rot:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.19.2"

- uses: r-lib/actions/setup-r@v2
with:
r-version: "devel"
http-user-agent: "release"
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: |
any::rcmdcheck
any::urlchecker
- name: Run URL checker
run: |
options(crayon.enabled = TRUE)
rotten_links <- urlchecker::url_check(progress = FALSE)
print(rotten_links)
if (length(rotten_links$URL) > 0L) {
stop("Some URLs are outdated and need to be updated.", call. = FALSE)
}
shell: Rscript {0}
5 changes: 4 additions & 1 deletion .github/workflows/check-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ jobs:
any::ggthemes
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
run: |
options(crayon.enabled = TRUE)
rmarkdown::render("README.Rmd")
shell: Rscript {0}
4 changes: 3 additions & 1 deletion .github/workflows/html-5-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: any::rcmdcheck
extra-packages: |
any::rcmdcheck
any::V8
dependencies: "character()"

- name: Install pdflatex
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:
todo_comment_linter = NULL,
undesirable_function_linter = NULL,
defaults = linters_with_tags(tags = NULL)
))
), exclusions = list("data-raw"))
shell: Rscript {0}
54 changes: 54 additions & 0 deletions .github/workflows/pkgdown-no-suggests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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
#
# NOTE: The {pkgdown} workflow in "noSuggests" mode makes sure that the vignettes or
# examples evaluated only on the website are also using soft dependencies conditionally.

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: pkgdown-no-suggests

jobs:
pkgdown-no-suggests:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3

# Always try to use the latest pandoc version
# https://github.com/jgm/pandoc/releases
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.19.2"

- uses: r-lib/actions/setup-r@v2
with:
r-version: "release"
http-user-agent: "release"
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
dependencies: '"hard"'
cache: false
extra-packages: |
any::knitr
any::rmarkdown
r-lib/pkgdown
local::.
needs: website

- name: Build site
run: |
options(crayon.enabled = TRUE)
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
11 changes: 8 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.19.2'
pandoc-version: "2.19.2"

- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -33,11 +33,16 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: r-lib/pkgdown, local::.
extra-packages: |
r-lib/pkgdown
local::.
needs: website

- name: Build site
run: Rscript -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)'
run: |
options(crayon.enabled = TRUE)
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ jobs:

- uses: r-lib/actions/setup-r@v2
with:
http-user-agent: "release"
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: r-lib/covr
extra-packages: |
r-lib/covr
needs: coverage

- name: Test coverage
run: covr::codecov(quiet = FALSE)
run: |
options(crayon.enabled = TRUE)
covr::codecov(quiet = FALSE)
shell: Rscript {0}
Loading

0 comments on commit 2a7ee97

Please sign in to comment.