From 9a4586a7d5102755aa1095bc55337df6ae1a760b Mon Sep 17 00:00:00 2001 From: mtwesley Date: Fri, 29 Nov 2024 06:53:12 -0500 Subject: [PATCH] updates for pkgdown --- .github/workflows/pkgdown.yaml | 25 ++++++++++++++----------- _pkgdown.yml | 21 ++++++++++++++++++++- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index c309a92..00ec5a4 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -8,9 +8,9 @@ name: pkgdown jobs: pkgdown: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 env: - RSPM: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest + RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: @@ -27,14 +27,16 @@ jobs: saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds") shell: Rscript {0} - - name: Restore R package cache - uses: actions/cache@v2 - with: - path: | - ${{ env.R_LIBS_USER }}/* - !${{ env.R_LIBS_USER }}/pak - key: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }} - restore-keys: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1- + # - name: Restore R package cache + # uses: actions/cache@v2 + # with: + # path: | + # ${{ env.R_LIBS_USER }}/* + # !${{ env.R_LIBS_USER }}/pak + # key: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }} + # restore-keys: | + # ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}- + # ubuntu-22.04- - name: Install system dependencies if: runner.os == 'Linux' @@ -50,7 +52,8 @@ jobs: shell: Rscript {0} - name: Install package - run: R CMD INSTALL . + run: pak::pkg_install(".", upgrade = TRUE) + shell: Rscript {0} - name: Build and deploy pkgdown site run: | diff --git a/_pkgdown.yml b/_pkgdown.yml index 6dc89bd..d2af0c8 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -1,10 +1,29 @@ home: title: greta.censored description: Censored Distributions for 'greta' + links: + - text: "Install from CRAN" + href: "https://CRAN.R-project.org/package=greta.censored" + navbar: structure: left: - text: Reference href: reference/index.html - text: Articles - href: articles/index.html \ No newline at end of file + href: articles/index.html + +template: + params: + bootswatch: cerulean + footer: + links: + - text: "GitHub" + href: "https://github.com/mtwesley/greta.censored" + - text: "CRAN" + href: "https://CRAN.R-project.org/package=greta.censored" + - text: "Code of Conduct" + href: "https://github.com/mtwesley/greta.censored/blob/main/CODE_OF_CONDUCT.md" + +news: + one_page: true \ No newline at end of file