From 2a446a5038f7ab3eb6313f792106872e16abfbe8 Mon Sep 17 00:00:00 2001 From: Diego H Date: Thu, 14 Dec 2023 22:39:14 +0100 Subject: [PATCH] Add action for devel `sf` #124 --- .github/workflows/check-sf-devel.yaml | 61 +++++++++++++++++++++++++++ CITATION.cff | 2 +- codemeta.json | 2 +- vignettes/articles/faqs.Rmd | 13 ++++++ vignettes/articles/palettes.Rmd | 13 ++++++ 5 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/check-sf-devel.yaml diff --git a/.github/workflows/check-sf-devel.yaml b/.github/workflows/check-sf-devel.yaml new file mode 100644 index 00000000..f1e9606e --- /dev/null +++ b/.github/workflows/check-sf-devel.yaml @@ -0,0 +1,61 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/master/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +# +# NOTE: This workflow is overkill for most R packages and +# check-standard.yaml is likely a better choice. +# usethis::use_github_action("check-standard") will install it. +on: + schedule: + - cron: '00 12 * * 2,5' + workflow_dispatch: + +name: R-CMD-check-sf-devel + +jobs: + R-CMD-check-sf-devel: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: windows-latest, r: 'release'} + - {os: macOS-latest, r: 'release'} + - {os: ubuntu-latest, r: 'release'} + + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-pandoc@v2 + + - 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@v2 + with: + cache-version: sf-devel + extra-packages: | + any::rcmdcheck + + needs: check + + - name: Install sf from runiverse + run: | + # Install sf from rspatial runiverse + install.packages('sf', repos = c('https://r-spatial.r-universe.dev', 'https://cloud.r-project.org')) + + # Display version + cat(as.character(packageVersion("sf"))) + + shell: Rscript {0} + - uses: r-lib/actions/check-r-package@v2 + diff --git a/CITATION.cff b/CITATION.cff index 3906ff06..3275a596 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -208,7 +208,7 @@ references: abstract: 'sf: Simple Features for R' notes: Imports url: https://r-spatial.github.io/sf/ - repository: https://CRAN.R-project.org/package=sf + repository: https://r-spatial.r-universe.dev authors: - family-names: Pebesma given-names: Edzer diff --git a/codemeta.json b/codemeta.json index 75722b19..8e265b24 100644 --- a/codemeta.json +++ b/codemeta.json @@ -308,7 +308,7 @@ "SystemRequirements": null }, "keywords": ["r", "terra", "ggplot-extension", "r-spatial", "rspatial", "r-package", "rstats", "rstats-package", "cran", "cran-r"], - "fileSize": "3445.592KB", + "fileSize": "3442.524KB", "citation": [ { "@type": "ScholarlyArticle", diff --git a/vignettes/articles/faqs.Rmd b/vignettes/articles/faqs.Rmd index 2fd2b132..12c53d83 100644 --- a/vignettes/articles/faqs.Rmd +++ b/vignettes/articles/faqs.Rmd @@ -485,3 +485,16 @@ autoplot(r) + text_cex = .8 ) ``` + + +## Session info + +
+ Details +```{r session, echo=FALSE} +if (!require("sessioninfo")) { + install.packages("sessioninfo") +} +sessioninfo::session_info() +``` +
diff --git a/vignettes/articles/palettes.Rmd b/vignettes/articles/palettes.Rmd index 9eaa1d4f..37eeb8f9 100644 --- a/vignettes/articles/palettes.Rmd +++ b/vignettes/articles/palettes.Rmd @@ -124,3 +124,16 @@ for (i in allpals) { print(ss) } ``` + + +## Session info + +
+ Details +```{r session, echo=FALSE} +if (!require("sessioninfo")) { + install.packages("sessioninfo") +} +sessioninfo::session_info() +``` +