From 85c712e36e16781a9c1ebeda2b5ee38ab2d6bd4b Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Fri, 10 May 2024 11:26:35 +0100 Subject: [PATCH 1/2] Spelling mistake and added about package installation after an R upgrade --- technical-r.qmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/technical-r.qmd b/technical-r.qmd index 5660bff..921ae1f 100644 --- a/technical-r.qmd +++ b/technical-r.qmd @@ -4,7 +4,8 @@ ## R vulnerability Published 29 April 2024 related to versions of R prior to 4.4.0 . -Remdial action suggested is to upgrade to 4.4.0 and only open rds files from trusted sources. +Remedial action suggested is to upgrade to 4.4.0 and only open rds files from trusted sources. +And a reminder that when R is updated packages will need to be reinstalled. ::: ## What programs are required for a computer From a586fd21d6e61316ae53d1eb2d2533cafe5863e8 Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Fri, 10 May 2024 11:28:01 +0100 Subject: [PATCH 2/2] Updated gh-action --- .github/workflows/quarto-publish.yml | 29 +++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index 40ab659..9d1f931 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -28,10 +28,33 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest container: - image: ghcr.io/dukestatsci/r_gh_actions:latest + image: ghcr.io/nhs-r-community/r_gh_actions:latest steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - uses: actions/cache@v4 + with: + key: packages + path: /usr/local/lib/R/site-library + + - name: Install Missing Packages + run: | + missing = checklist::install_missing_pkgs(dir = "./", glob = "*.qmd") + shell: Rscript {0} + + - name: Install NHSRpostcodetools + run: | + remotes::install_github("nhs-r-community/NHSRpostcodetools") + shell: Rscript {0} + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + - name: Install NHSRpopulation + run: | + remotes::install_github("nhs-r-community/NHSRpopulation") + shell: Rscript {0} + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - name: Build site run: |