Skip to content

Commit

Permalink
Merge pull request #8 from bainmatt/build-workflow
Browse files Browse the repository at this point in the history
Tweak build check workflow to only break on errors
  • Loading branch information
bainmatt authored Jun 19, 2024
2 parents dfb2c1e + 8b39f95 commit 3630133
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
# - {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
Expand All @@ -47,6 +47,8 @@ jobs:
needs: check

- uses: r-lib/actions/check-r-package@v2
# NOTE: The following 2 lines prevent failure on warnings
with:
error-on: '"error"'
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
4 changes: 4 additions & 0 deletions R/globals.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This is a workaround for the R-CMD-check error
# no visible binding for global variable ‘.’
# which circumvents warnings caused by using '.' inside pipes.
utils::globalVariables(c("."))

0 comments on commit 3630133

Please sign in to comment.