Skip to content

Commit 6a0342e

Browse files
Run examples with pkgload to set quiet=TRUE (#2518)
Co-authored-by: Indrajeet Patil <[email protected]>
1 parent d86738f commit 6a0342e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/check-all-examples.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
on:
1111
push:
12-
branches: [main, master]
12+
branches: main
1313
pull_request:
14-
branches: [main, master]
14+
branches: main
1515

1616
name: check-all-examples
1717

@@ -32,11 +32,13 @@ jobs:
3232
with:
3333
pak-version: devel
3434
extra-packages: |
35-
any::devtools
35+
any::pkgload
3636
local::.
3737
3838
- name: Run examples
3939
run: |
4040
options(crayon.enabled = TRUE)
41-
devtools::run_examples(fresh = TRUE, run_dontrun = TRUE, run_donttest = TRUE)
41+
pkgload::load_all()
42+
setwd("man")
43+
for (rd in list.files(pattern = "\\.Rd")) pkgload::run_example(rd, run_dontrun = TRUE, run_donttest = TRUE, quiet = TRUE)
4244
shell: Rscript {0}

0 commit comments

Comments
 (0)