Skip to content

Commit 6a16914

Browse files
committed
Run vignettes by setting environment variable
1 parent 46089cb commit 6a16914

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
any::spdep
5050
any::StanHeaders
5151
any::knitr
52+
any::withr
5253
needs: website
5354

5455
# - uses: actions/cache@v4
@@ -58,11 +59,14 @@ jobs:
5859

5960
- name: Build site
6061
run: |
61-
pkgdown::build_site_github_pages(
62-
lazy = TRUE,
63-
install = TRUE,
64-
run_dont_run = TRUE,
65-
new_process = TRUE
62+
withr::with_envvar(
63+
c("NOT_CRAN" = "true"),
64+
pkgdown::build_site_github_pages(
65+
lazy = FALSE, # change to TRUE if runner times out.
66+
install = TRUE,
67+
run_dont_run = TRUE,
68+
new_process = TRUE
69+
)
6670
)
6771
shell: Rscript {0}
6872

0 commit comments

Comments
 (0)