Skip to content

Commit e634e31

Browse files
committed
ropensci build changes
1 parent 47218b6 commit e634e31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
RSPM: ${{ matrix.config.rspm }}
2929
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3030
PATENTSVIEW_API_KEY: ${{ secrets.PATENTSVIEW_API_KEY }}
31+
EXAMPLES_PARAM: ${{ github.event_name == 'push' && 'run_dontrun = TRUE' || 'run_dontrun = FALSE' }}
32+
NOT_CRAN_VALUE: ${{ github.event_name == 'push' && 'TRUE' || 'FALSE' }}
3133

3234
steps:
3335
- uses: actions/checkout@v4
@@ -71,6 +73,8 @@ jobs:
7173
- name: Check
7274
env:
7375
_R_CHECK_CRAN_INCOMING_REMOTE_: false
76+
NOT_CRAN: ${{ env.NOT_CRAN_VALUE }}
77+
7478
run: |
7579
options(crayon.enabled = TRUE)
7680
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
@@ -79,10 +83,11 @@ jobs:
7983
- name: Run examples
8084
env:
8185
_R_CHECK_CRAN_INCOMING_REMOTE_: false
86+
8287
run: |
8388
options(crayon.enabled = TRUE)
8489
remotes::install_cran("devtools")
85-
devtools::run_examples()
90+
devtools::run_examples( ${{ env.EXAMPLES_PARAM }} )
8691
shell: Rscript {0}
8792

8893
- name: Upload check results

0 commit comments

Comments
 (0)