From 5e2e98249a8dac845afd2d1063af3cddeeef3ba0 Mon Sep 17 00:00:00 2001 From: Ben Bond-Lamberty Date: Fri, 18 Aug 2023 20:44:39 -0400 Subject: [PATCH] Try using setup-r-dependencies Based on https://community.rstudio.com/t/setup-quarto-on-github-actions-doesnt-seem-to-install-everything-needed/156823 --- .github/workflows/check-workflow.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-workflow.yaml b/.github/workflows/check-workflow.yaml index 9fc21df..cbedda4 100644 --- a/.github/workflows/check-workflow.yaml +++ b/.github/workflows/check-workflow.yaml @@ -26,10 +26,19 @@ jobs: - uses: r-lib/actions/setup-r@v2 - uses: r-lib/actions/setup-pandoc@v2 - uses: quarto-dev/quarto-actions/setup@v2 + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + packages: + any::quarto + any::dplyr + any::tidyr + any::remotes + any::readr + any::lubridate - name: Install needed packages run: | - install.packages("quarto", repos = "https://cran.rstudio.com/") - install.packages(c("dplyr", "tidyr", "remotes", "readr", "lubridate")) + #install.packages("quarto", repos = "https://cran.rstudio.com/") + #install.packages(c("dplyr", "tidyr", "remotes", "readr", "lubridate")) remotes::install_github("COMPASS-DOE/compasstools") shell: Rscript {0} - name: Run workflow