From 67ec6ed876e21b9d79d590a180b74948ed5117bd Mon Sep 17 00:00:00 2001 From: Andy Teucher Date: Wed, 3 Jul 2024 16:54:56 -0700 Subject: [PATCH] Use setup-r-dependencies action --- .github/workflows/quarto-publish.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index 604a8bd..1d49b03 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository - uses: actions/checkout@v2 - + uses: actions/checkout@v24 + - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 with: @@ -18,12 +18,12 @@ jobs: tinytex: true # uncomment below and fill to pin a version # version: 0.9.600 + + - uses: r-lib/actions/setup-r@v2 + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + packages: knitr, rmarkdown, quarto, stringr, purrr - - name: Install R packages - run: | - install.packages(c("knitr", "rmarkdown", "quarto", "stringr", "purrr")) - shell: Rscript {0} - - name: Render PDF run: | quarto::quarto_render("_make_pdf.qmd")