-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (75 loc) · 2.46 KB
/
Copy pathpandocless.yaml
File metadata and controls
75 lines (75 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: pandocless
on:
schedule: # quarterly
- cron: "0 09 1 */3 *"
workflow_dispatch:
jobs:
pandocless:
runs-on: ubuntu-24.04
name: pandocless
env:
# This job is designed to simulate a CRAN environment with no pandoc installed
NOT_CRAN: FALSE
_R_CHECK_CRAN_INCOMING_: TRUE
_R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
steps:
- uses: actions/checkout@v7
with:
repository: "workflowr/workflowr"
- name: Setup r2u
uses: eddelbuettel/github-actions/r2u-setup@master
with:
bspm-version-check: "FALSE"
- name: Install dependencies
run: |
apt-get install --yes \
r-cran-callr \
r-cran-fs \
r-cran-getpass \
r-cran-git2r \
r-cran-glue \
r-cran-httpuv \
r-cran-httr \
r-cran-knitr \
r-cran-rmarkdown \
r-cran-rprojroot \
r-cran-rstudioapi \
r-cran-stringr \
r-cran-whisker \
r-cran-xfun \
r-cran-yaml \
r-cran-clipr \
r-cran-miniui \
r-cran-reticulate \
r-cran-sessioninfo \
r-cran-shiny \
r-cran-testthat \
r-cran-withr
dpkg-query --list r-*
shell: sudo bash {0}
# r-cran-rmarkdown now depends on pandoc. In general I think this is a
# good practice for a package manager (we also add pandoc to the run
# requirements of the r-rmarkdown conda-forge package for the same
# reason). But in order to confirm `R CMD check` can run without pandoc, I
# need to remove it.
- name: Install {rmarkdown} without pandoc
run: |
apt-get remove --yes pandoc || true
apt-get install --yes r-cran-remotes
Rscript -e 'remotes::install_github("rstudio/rmarkdown@*release", dependencies = FALSE)'
shell: sudo bash {0}
- name: Session information
run: sessionInfo()
shell: Rscript {0}
- name: Confirm pandocless
run: |
if (rmarkdown::pandoc_available())
stop("pandoc is available")
shell: Rscript {0}
- name: Build
run: R CMD build --no-build-vignettes --no-manual .
- name: Check
run: R CMD check --ignore-vignettes --no-manual --as-cran workflowr_*.tar.gz
- name: Test results
if: always()
run: cat workflowr.Rcheck/tests/testthat.Rout*