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: | 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