Update {epiparameter} usage #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main, master] | |
paths: | |
- 'inst/rmarkdown/templates/**' | |
name: test reports | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-reports: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | |
sodium # it would be good to automatically identify system dependencies in the future | |
- name: Test report rendering | |
run: | | |
library(episoap) | |
for (tp in list_templates()) { | |
rmarkdown::render( | |
system.file("rmarkdown", "templates", tp, "skeleton", "skeleton.Rmd", | |
package = "episoap" | |
), | |
output_file = tempfile(), | |
quiet = TRUE | |
) | |
} | |
shell: Rscript {0} |