Skip to content

Commit

Permalink
RCMDCHECK_ERROR_ON
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Aug 20, 2023
1 parent a27527e commit 370e566
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/R-CMD-check-suggests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,17 @@ jobs:
cat('_R_CHECK_FORCE_SUGGESTS_=false\n', file = Sys.getenv("GITHUB_ENV"), append = TRUE)
shell: Rscript {0}

- name: Check _R_CHECK_FORCE_SUGGESTS_
- name: Must allow NOTEs, even with _R_CHECK_FORCE_SUGGESTS_
run: |
if (Sys.getenv("RCMDCHECK_ERROR_ON") %in% c("", "note")) {
cat('RCMDCHECK_ERROR_ON='"warning"'\n', file = Sys.getenv("GITHUB_ENV"), append = TRUE)
}
shell: Rscript {0}

- name: Check env vars
run: |
print(Sys.getenv('_R_CHECK_FORCE_SUGGESTS_'))
print(Sys.getenv('RCMDCHECK_ERROR_ON'))
shell: Rscript {0}

- uses: ./.github/workflows/check
Expand Down

0 comments on commit 370e566

Please sign in to comment.