Staging public #28
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 | |
--- | |
name: Check Render Bookdown | |
on: | |
pull_request: | |
jobs: | |
check_render_bookdown: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install libudunits2 and libmagick | |
run: | | |
sudo apt-get install -y libudunits2-dev libgdal-dev | |
sudo apt-get install libmagick++-dev | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
packages: | | |
any::testthat | |
any::bookdown | |
any::covr | |
- name: Render Bookdown | |
run: | | |
install.packages(c( | |
"testthat", | |
"rsconnect", | |
"bookdown", | |
"rmarkdown", | |
"plotly", | |
"shiny", | |
"tidycensus", | |
"tidyverse", | |
"viridis", | |
"ggmap", | |
"ggplot2", | |
"maps", | |
"dplyr", | |
"knitr", | |
"latticeExtra", | |
"pals", | |
"classInt", | |
"sf", | |
"udunits2", | |
"tmap", | |
"lubridate", | |
"gifski", | |
"magick", | |
"cowplot", | |
"BiocManager" | |
), | |
dependencies = TRUE | |
) | |
BiocManager::install("Biobase") | |
covr::environment_coverage( | |
test_files = "tests/test-render_bookdown.R" | |
) | |
shell: Rscript {0} |