Skip to content

Commit c799e3c

Browse files
committed
Run extrachecks in CI
1 parent 5111e50 commit c799e3c

File tree

6 files changed

+67
-6
lines changed

6 files changed

+67
-6
lines changed

.github/workflows/extrachecks.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
#
4+
# NOTE: This workflow only directly installs "hard" dependencies, i.e. Depends,
5+
# Imports, and LinkingTo dependencies. Notably, Suggests dependencies are never
6+
# installed, with the exception of testthat, knitr, and rmarkdown. The cache is
7+
# never used to avoid accidentally restoring a cache containing a suggested
8+
# dependency.
9+
on:
10+
push:
11+
branches: [main, master]
12+
pull_request:
13+
14+
name: check-no-suggests.yaml
15+
16+
permissions: read-all
17+
18+
jobs:
19+
check-no-suggests:
20+
runs-on: ${{ matrix.config.os }}
21+
22+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
config:
28+
- {os: ubuntu-latest, r: 'release'}
29+
30+
env:
31+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
32+
R_KEEP_PKG_SOURCE: yes
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- uses: r-lib/actions/setup-pandoc@v2
38+
39+
- uses: r-lib/actions/setup-r@v2
40+
with:
41+
r-version: ${{ matrix.config.r }}
42+
http-user-agent: ${{ matrix.config.http-user-agent }}
43+
use-public-rspm: true
44+
45+
- uses: r-lib/actions/setup-r-dependencies@v2
46+
with:
47+
dependencies: '"hard"'
48+
cache: false
49+
extra-packages: |
50+
any::rcmdcheck
51+
any::testthat
52+
any::knitr
53+
any::rmarkdown
54+
needs: check
55+
56+
- uses: r-lib/actions/check-r-package@v2
57+
with:
58+
upload-snapshots: true
59+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

R/reports.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#' @family fairness_reports
1616
#' @export
1717
#' @return Invisibly returns the path to the newly created file(s).
18-
#' @examples
18+
#' @examplesIf rlang::is_installed("rmarkdown")
1919
#' report_file = tempfile()
2020
#' report_datasheet(report_file)
2121
report_datasheet = function(filename = "datasheet.Rmd", edit = FALSE, build = FALSE) {
@@ -39,7 +39,7 @@ report_datasheet = function(filename = "datasheet.Rmd", edit = FALSE, build = FA
3939
#' @family fairness_reports
4040
#' @export
4141
#' @return Invisibly returns the path to the newly created file(s).
42-
#' @examples
42+
#' @examplesIf rlang::is_installed("rmarkdown")
4343
#' report_file = tempfile()
4444
#' report_modelcard(report_file)
4545
report_modelcard = function(filename = "modelcard.Rmd", edit = FALSE, build = FALSE) {
@@ -69,7 +69,7 @@ report_modelcard = function(filename = "modelcard.Rmd", edit = FALSE, build = FA
6969
#' @family fairness_reports
7070
#' @export
7171
#' @return Invisibly returns the path to the newly created file(s).
72-
#' @examplesIf rlang::is_installed("rpart")
72+
#' @examplesIf rlang::is_installed("rpart") && rlang::is_installed("rmarkdown")
7373
#' library("mlr3")
7474
#' report_file = tempfile()
7575
#' task = tsk("compas")

cran-comments.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ Remvoes dependency on the posterdown package which was removed from CRAN.
88
R CMD check reports
99

1010
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
11-
12-
- RHub shows a PREPERROR but all builds succeed.

man/report_datasheet.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_fairness.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_modelcard.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)