Skip to content

Commit 2a7ee97

Browse files
RC CRAN 0.10.0 (#811)
* 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()`
1 parent 80cf42e commit 2a7ee97

File tree

104 files changed

+1713
-2532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1713
-2532
lines changed

.Rbuildignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
^docs$
1818
^revdep$
1919
publication/*
20-
^codecov\.yml$
20+
^codecov\.yaml$
2121
^\.coveralls\.yml$
2222
^\.travis\.yml$
2323
^_pkgdown\.yml$

.github/workflows/R-CMD-check.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
matrix:
2121
config:
2222
#- {os: macos-latest, r: 'devel'}
23-
- {os: macos-latest, r: 'release'}
24-
- {os: macos-latest, r: 'oldrel-1'}
23+
- { os: macos-latest, r: "release" }
24+
- { os: macos-latest, r: "oldrel-1" }
2525

26-
- {os: windows-latest, r: 'devel'}
27-
- {os: windows-latest, r: 'release'}
28-
- {os: windows-latest, r: 'oldrel-1'}
26+
- { os: windows-latest, r: "devel" }
27+
- { os: windows-latest, r: "release" }
28+
- { os: windows-latest, r: "oldrel-1" }
2929

30-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
31-
- {os: ubuntu-latest, r: 'release'}
32-
- {os: ubuntu-latest, r: 'oldrel-1'}
30+
- { os: ubuntu-latest, r: "devel", http-user-agent: "release" }
31+
- { os: ubuntu-latest, r: "release" }
32+
- { os: ubuntu-latest, r: "oldrel-1" }
3333

3434
env:
3535
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -40,7 +40,7 @@ jobs:
4040

4141
- uses: r-lib/actions/setup-pandoc@v2
4242
with:
43-
pandoc-version: '2.19.2'
43+
pandoc-version: "2.19.2"
4444

4545
- uses: r-lib/actions/setup-r@v2
4646
with:
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Make sure all examples run successfully, even the ones that are not supposed
2+
# to be run or tested on CRAN machines by default.
3+
#
4+
# The examples that fail should use
5+
# - `if (FALSE) { ... }` (if example is included only for illustrative purposes)
6+
# - `try({ ... })` (if the intent is to show the error)
7+
#
8+
# This workflow helps find such failing examples that need to be modified.
9+
10+
on:
11+
push:
12+
branches: [main, master]
13+
pull_request:
14+
branches: [main, master]
15+
16+
name: check-all-examples
17+
18+
jobs:
19+
check-all-examples:
20+
runs-on: ubuntu-latest
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: r-lib/actions/setup-r@v2
28+
with:
29+
use-public-rspm: true
30+
31+
- uses: r-lib/actions/setup-r-dependencies@v2
32+
with:
33+
pak-version: devel
34+
extra-packages: |
35+
any::devtools
36+
local::.
37+
38+
- name: Run examples
39+
run: |
40+
options(crayon.enabled = TRUE)
41+
devtools::run_examples(fresh = TRUE, run_dontrun = TRUE, run_donttest = TRUE)
42+
shell: Rscript {0}

.github/workflows/check-link-rot.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
push:
3+
branches: [main, master]
4+
pull_request:
5+
branches: [main, master]
6+
7+
name: check-link-rot
8+
9+
jobs:
10+
check-link-rot:
11+
runs-on: ubuntu-latest
12+
env:
13+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
14+
R_KEEP_PKG_SOURCE: yes
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- uses: r-lib/actions/setup-pandoc@v2
19+
with:
20+
pandoc-version: "2.19.2"
21+
22+
- uses: r-lib/actions/setup-r@v2
23+
with:
24+
r-version: "devel"
25+
http-user-agent: "release"
26+
use-public-rspm: true
27+
28+
- uses: r-lib/actions/setup-r-dependencies@v2
29+
with:
30+
pak-version: devel
31+
extra-packages: |
32+
any::rcmdcheck
33+
any::urlchecker
34+
35+
- name: Run URL checker
36+
run: |
37+
options(crayon.enabled = TRUE)
38+
rotten_links <- urlchecker::url_check(progress = FALSE)
39+
print(rotten_links)
40+
if (length(rotten_links$URL) > 0L) {
41+
stop("Some URLs are outdated and need to be updated.", call. = FALSE)
42+
}
43+
shell: Rscript {0}

.github/workflows/check-readme.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ jobs:
4949
any::ggthemes
5050
5151
- name: Render README
52-
run: Rscript -e 'rmarkdown::render("README.Rmd")'
52+
run: |
53+
options(crayon.enabled = TRUE)
54+
rmarkdown::render("README.Rmd")
55+
shell: Rscript {0}

.github/workflows/html-5-check.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- uses: r-lib/actions/setup-r-dependencies@v2
2727
with:
2828
pak-version: devel
29-
extra-packages: any::rcmdcheck
29+
extra-packages: |
30+
any::rcmdcheck
31+
any::V8
3032
dependencies: "character()"
3133

3234
- name: Install pdflatex

.github/workflows/lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ jobs:
4545
todo_comment_linter = NULL,
4646
undesirable_function_linter = NULL,
4747
defaults = linters_with_tags(tags = NULL)
48-
))
48+
), exclusions = list("data-raw"))
4949
shell: Rscript {0}
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
#
4+
# NOTE: The {pkgdown} workflow in "noSuggests" mode makes sure that the vignettes or
5+
# examples evaluated only on the website are also using soft dependencies conditionally.
6+
7+
on:
8+
push:
9+
branches: [main, master]
10+
pull_request:
11+
branches: [main, master]
12+
13+
name: pkgdown-no-suggests
14+
15+
jobs:
16+
pkgdown-no-suggests:
17+
runs-on: ubuntu-latest
18+
19+
env:
20+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
21+
R_KEEP_PKG_SOURCE: yes
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
# Always try to use the latest pandoc version
27+
# https://github.com/jgm/pandoc/releases
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
with:
30+
pandoc-version: "2.19.2"
31+
32+
- uses: r-lib/actions/setup-r@v2
33+
with:
34+
r-version: "release"
35+
http-user-agent: "release"
36+
use-public-rspm: true
37+
38+
- uses: r-lib/actions/setup-r-dependencies@v2
39+
with:
40+
pak-version: devel
41+
dependencies: '"hard"'
42+
cache: false
43+
extra-packages: |
44+
any::knitr
45+
any::rmarkdown
46+
r-lib/pkgdown
47+
local::.
48+
needs: website
49+
50+
- name: Build site
51+
run: |
52+
options(crayon.enabled = TRUE)
53+
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
54+
shell: Rscript {0}

.github/workflows/pkgdown.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: r-lib/actions/setup-pandoc@v2
2626
with:
27-
pandoc-version: '2.19.2'
27+
pandoc-version: "2.19.2"
2828

2929
- uses: r-lib/actions/setup-r@v2
3030
with:
@@ -33,11 +33,16 @@ jobs:
3333
- uses: r-lib/actions/setup-r-dependencies@v2
3434
with:
3535
pak-version: devel
36-
extra-packages: r-lib/pkgdown, local::.
36+
extra-packages: |
37+
r-lib/pkgdown
38+
local::.
3739
needs: website
3840

3941
- name: Build site
40-
run: Rscript -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)'
42+
run: |
43+
options(crayon.enabled = TRUE)
44+
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
45+
shell: Rscript {0}
4146

4247
- name: Deploy to GitHub pages 🚀
4348
if: github.event_name != 'pull_request'

.github/workflows/test-coverage.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ jobs:
1919

2020
- uses: r-lib/actions/setup-r@v2
2121
with:
22+
http-user-agent: "release"
2223
use-public-rspm: true
2324

2425
- uses: r-lib/actions/setup-r-dependencies@v2
2526
with:
2627
pak-version: devel
27-
extra-packages: r-lib/covr
28+
extra-packages: |
29+
r-lib/covr
2830
needs: coverage
2931

3032
- name: Test coverage
31-
run: covr::codecov(quiet = FALSE)
33+
run: |
34+
options(crayon.enabled = TRUE)
35+
covr::codecov(quiet = FALSE)
3236
shell: Rscript {0}

0 commit comments

Comments
 (0)