From 484ba1a3175b72add1813fc54349b4a246b9e993 Mon Sep 17 00:00:00 2001 From: Kari Lavikka Date: Tue, 14 Jan 2025 15:29:08 +0200 Subject: [PATCH] update the action --- .github/workflows/build-and-deploy-vignette.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy-vignette.yaml b/.github/workflows/build-and-deploy-vignette.yaml index 8dd4c89..29e21fb 100644 --- a/.github/workflows/build-and-deploy-vignette.yaml +++ b/.github/workflows/build-and-deploy-vignette.yaml @@ -16,11 +16,23 @@ jobs: - name: Set up R uses: r-lib/actions/setup-r@v2 + - name: Cache R packages + uses: actions/cache@v3 + with: + path: ~/.R/library + key: ${{ runner.os }}-r-${{ hashFiles('**/DESCRIPTION', '**/NAMESPACE') }} + restore-keys: | + ${{ runner.os }}-r- + - name: Install dependencies run: | - install.packages('devtools') + install.packages("devtools") devtools::install_deps(dependencies = TRUE) + - name: Install the jellyfisher package + run: | + R CMD INSTALL . + - name: Build vignette run: | R -e 'rmarkdown::render("vignettes/introduction.Rmd", output_file = "docs/introduction.html")'