Skip to content

Commit

Permalink
Add action for devel sf #124
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Dec 14, 2023
1 parent 3dbb668 commit 2a446a5
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 2 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/check-sf-devel.yaml
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions vignettes/articles/faqs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -485,3 +485,16 @@ autoplot(r) +
text_cex = .8
)
```


## Session info

<details>
<summary>Details</summary>
```{r session, echo=FALSE}
if (!require("sessioninfo")) {
install.packages("sessioninfo")
}
sessioninfo::session_info()
```
</details>
13 changes: 13 additions & 0 deletions vignettes/articles/palettes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,16 @@ for (i in allpals) {
print(ss)
}
```


## Session info

<details>
<summary>Details</summary>
```{r session, echo=FALSE}
if (!require("sessioninfo")) {
install.packages("sessioninfo")
}
sessioninfo::session_info()
```
</details>

0 comments on commit 2a446a5

Please sign in to comment.