diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index bd53405..ecde994 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -1,9 +1,5 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/master/examples +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help - -# Branches containing 'x' in their prefix (x/...) are liable to be rebased -# as needed, but can be helpful as actions are debugged and refined. - on: push: branches: [main, dev, x/dev, x/check] @@ -24,27 +20,31 @@ jobs: config: - {os: macos-latest, r: 'release'} - {os: windows-latest, r: 'release'} - - {os: ubuntu-latest, r: 'release'} - #- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - #- {os: ubuntu-latest, r: 'oldrel-1'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: r-lib/actions/setup-pandoc@v1 + - uses: r-lib/actions/setup-pandoc@v2 - - uses: r-lib/actions/setup-r@v1 + - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true - - uses: r-lib/actions/setup-r-dependencies@v1 + - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: rcmdcheck + extra-packages: any::rcmdcheck + needs: check - - uses: r-lib/actions/check-r-package@v1 + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/README.Rmd b/README.Rmd index a8ffc27..2ce9a06 100644 --- a/README.Rmd +++ b/README.Rmd @@ -22,6 +22,7 @@ stopifnot(!file.exists(here::here("gitpins"))) [![R-CMD-check](https://github.com/torfason/gitpins/workflows/R-CMD-check/badge.svg)](https://github.com/torfason/gitpins/actions) +[![R-CMD-check](https://github.com/torfason/gitpins/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/torfason/gitpins/actions/workflows/R-CMD-check.yaml) `r desc::desc_get("Description")` diff --git a/README.md b/README.md index 15967c4..7fe83b5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![R-CMD-check](https://github.com/torfason/gitpins/workflows/R-CMD-check/badge.svg)](https://github.com/torfason/gitpins/actions) +[![R-CMD-check](https://github.com/torfason/gitpins/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/torfason/gitpins/actions/workflows/R-CMD-check.yaml) Pin URLs to local file and version the pins with git. Repeated downloads @@ -124,15 +125,15 @@ list_pins() #> # A tibble: 2 × 2 #> timestamp url #> -#> 1 2024-03-28 16:27:41.32470 https://vincentarelbundock.github.io/Rdatasets/csv/openintro/country_iso.csv -#> 2 2024-03-28 16:27:41.08385 https://vincentarelbundock.github.io/Rdatasets/csv/datasets/sunspot.month.csv +#> 1 2024-03-28 16:33:23.74682 https://vincentarelbundock.github.io/Rdatasets/csv/openintro/country_iso.csv +#> 2 2024-03-28 16:33:23.58968 https://vincentarelbundock.github.io/Rdatasets/csv/datasets/sunspot.month.csv list_pins(history = TRUE) #> # A tibble: 3 × 2 #> timestamp url #> -#> 1 2024-03-28 16:27:41.32470 https://vincentarelbundock.github.io/Rdatasets/csv/openintro/country_iso.csv -#> 2 2024-03-28 16:27:41.08385 https://vincentarelbundock.github.io/Rdatasets/csv/datasets/sunspot.month.csv -#> 3 2024-03-28 16:27:40.70178 https://vincentarelbundock.github.io/Rdatasets/csv/openintro/country_iso.csv +#> 1 2024-03-28 16:33:23.74682 https://vincentarelbundock.github.io/Rdatasets/csv/openintro/country_iso.csv +#> 2 2024-03-28 16:33:23.58968 https://vincentarelbundock.github.io/Rdatasets/csv/datasets/sunspot.month.csv +#> 3 2024-03-28 16:33:23.27699 https://vincentarelbundock.github.io/Rdatasets/csv/openintro/country_iso.csv ``` ## Installation