Skip to content

Commit f917f9b

Browse files
committed
squash
1 parent bf8ca8d commit f917f9b

File tree

440 files changed

+19118
-42405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+19118
-42405
lines changed

.Rbuildignore

+19-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,22 @@
2121
^doc$
2222
^Meta$
2323
^CRAN-RELEASE$
24-
^vignettes$
25-
^mapSpain\.Rcheck$
26-
^mapSpain.*\.tar\.gz$
27-
^mapSpain.*\.tgz$
24+
^.gitattributes
25+
^img$
26+
^_pkgdown\.yml$
27+
^codemeta\.json$
28+
^vignettes/articles$
29+
^vignettes/mapSpain\.Rmd\.orig$
30+
^_pkgdown\.yaml$
31+
^CITATION\.cff$
32+
^tests/testthat/_snaps/esp_getTiles$
33+
^tests/testthat/_snaps/layer_spatraster$
34+
^.*\.pdf$
35+
^CRAN-SUBMISSION$
36+
^pkgdown\.yaml$
37+
^pkgdown\.yml$
38+
^\.imgbotconfig$
39+
^\.lintr$
40+
^CODE_OF_CONDUCT\.md$
41+
^CONTRIBUTING\.md$
42+
^Rplots\.pdf$

.gitattributes

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
*.css linguist-detectable=false
21
*.html linguist-detectable=false
3-
*.js linguist-detectable=false
2+
*.js linguist-detectable=false

.github/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
*.html
2+
R-version
3+
depends.Rds
4+
*.rds

.github/R-version

-1
This file was deleted.

.github/dependabot.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
# Basic set up for three package managers
7+
8+
version: 2
9+
updates:
10+
11+
# Maintain dependencies for GitHub Actions
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+

.github/depends.Rds

-1.5 KB
Binary file not shown.

.github/workflows/cff-validator.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
paths:
4+
- CITATION.cff
5+
workflow_dispatch:
6+
7+
name: CITATION.cff
8+
jobs:
9+
Validate-CITATION-cff:
10+
runs-on: ubuntu-latest
11+
name: Validate CITATION.cff
12+
env:
13+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Validate CITATION.cff
20+
uses: dieghernan/cff-validator@main
21+

.github/workflows/check-full.yaml

+26-59
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2-
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
1+
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
#
4+
# NOTE: This workflow is overkill for most R packages and
5+
# check-standard.yaml is likely a better choice.
6+
# usethis::use_github_action("check-standard") will install it.
37
on:
48
push:
5-
branches:
6-
- master
9+
branches: [main, master]
710
pull_request:
8-
branches:
9-
- master
11+
branches: [main, master]
1012
schedule:
11-
- cron: '0 6 * * 3,6'
12-
13+
- cron: '0 14 * * 2,5'
1314

1415
name: R-CMD-check
1516

@@ -23,70 +24,36 @@ jobs:
2324
fail-fast: false
2425
matrix:
2526
config:
26-
- {os: windows-latest, r: 'devel'}
27+
#- {os: windows-latest, r: 'devel'}
2728
- {os: windows-latest, r: 'release'}
2829
- {os: windows-latest, r: 'oldrel'}
29-
# - {os: macOS-latest, r: 'devel'}
30+
#- {os: macOS-latest, r: 'devel'}
3031
- {os: macOS-latest, r: 'release'}
3132
- {os: macOS-latest, r: 'oldrel'}
32-
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
33-
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
34-
- {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
35-
- {os: ubuntu-20.04, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
33+
- {os: ubuntu-latest, r: 'release'}
34+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
35+
#- {os: ubuntu-latest, r: 'oldrel'}
3636

37-
3837

3938
env:
40-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
41-
RSPM: ${{ matrix.config.rspm }}
39+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4240

4341
steps:
44-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v4
43+
44+
- uses: r-lib/actions/setup-pandoc@v2
4545

46-
- uses: r-lib/actions/setup-r@master
46+
- uses: r-lib/actions/setup-r@v2
4747
with:
4848
r-version: ${{ matrix.config.r }}
49+
http-user-agent: ${{ matrix.config.http-user-agent }}
50+
use-public-rspm: true
4951

50-
- uses: r-lib/actions/setup-pandoc@master
51-
52-
- name: Query dependencies
53-
run: |
54-
install.packages('remotes')
55-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
56-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
57-
shell: Rscript {0}
58-
59-
- name: Cache R packages
60-
if: runner.os != 'Windows'
61-
uses: actions/cache@v2
52+
- uses: r-lib/actions/setup-r-dependencies@v2
6253
with:
63-
path: ${{ env.R_LIBS_USER }}
64-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
65-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
54+
cache-version: 5
55+
extra-packages: any::rcmdcheck
56+
needs: check
6657

67-
- name: Install system dependencies
68-
if: runner.os == 'Linux'
69-
run: |
70-
while read -r cmd
71-
do
72-
eval sudo $cmd
73-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
58+
- uses: r-lib/actions/check-r-package@v2
7459

75-
- name: Install dependencies
76-
run: |
77-
remotes::install_deps(dependencies = TRUE)
78-
remotes::install_cran("rcmdcheck")
79-
shell: Rscript {0}
80-
81-
- name: Check
82-
env:
83-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
84-
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
85-
shell: Rscript {0}
86-
87-
- name: Upload check results
88-
if: failure()
89-
uses: actions/upload-artifact@main
90-
with:
91-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
92-
path: check

.github/workflows/cran-status.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CRAN Status Monitor
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 10 * * 1,3,5'
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
permissions: write-all
12+
env:
13+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Check
20+
uses: dieghernan/cran-status-check@v1
21+
with:
22+
fail-on-error: "true"
23+
create-issue: "false"
24+

.github/workflows/lint.yaml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# lintr provides static code analysis for R.
6+
# It checks for adherence to a given style,
7+
# identifying syntax errors and possible semantic issues,
8+
# then reports them to you so you can take action.
9+
# More details at https://lintr.r-lib.org/
10+
11+
name: lintr
12+
13+
on:
14+
push:
15+
branches:
16+
- main
17+
- master
18+
workflow_dispatch:
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches:
22+
- main
23+
- master
24+
schedule:
25+
- cron: '56 11 * * 5'
26+
27+
permissions:
28+
contents: read
29+
30+
jobs:
31+
lintr:
32+
name: Run lintr scanning
33+
runs-on: ubuntu-latest
34+
permissions:
35+
contents: read # for checkout to fetch code
36+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
37+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
38+
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
43+
- name: Setup R
44+
uses: r-lib/actions/setup-r@v2
45+
with:
46+
use-public-rspm: true
47+
48+
- name: Setup lintr
49+
uses: r-lib/actions/setup-r-dependencies@v2
50+
with:
51+
extra-packages: |
52+
local::.
53+
any::lintr
54+
55+
- name: Run lintr
56+
run: |
57+
# Lintr package
58+
out <- lintr::lint_package()
59+
# Create SARIF report
60+
lintr::sarif_output(out, "lintr-results.sarif")
61+
# Display
62+
out
63+
shell: Rscript {0}
64+
continue-on-error: true
65+
66+
- name: Upload analysis results to GitHub
67+
uses: github/codeql-action/upload-sarif@v3
68+
with:
69+
sarif_file: lintr-results.sarif
70+
wait-for-processing: true
71+

.github/workflows/pkgcheck.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pkgcheck
2+
3+
# This will cancel running jobs once a new run is triggered
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.head_ref }}
6+
cancel-in-progress: true
7+
8+
on:
9+
# Manually trigger the Action under Actions/pkgcheck
10+
workflow_dispatch:
11+
12+
jobs:
13+
pkgcheck:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: ropensci-review-tools/pkgcheck-action@main
17+
with:
18+
summary-only: false
19+
post-to-issue: true
20+
append-to-issue: true
21+

.github/workflows/recheck.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Workflow derived from https://github.com/r-devel/recheck
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
which:
6+
type: choice
7+
description: Which dependents to check
8+
options:
9+
- strong
10+
- most
11+
12+
name: r-devel reverse dependency check
13+
14+
jobs:
15+
revdep_check:
16+
name: Reverse check ${{ inputs.which }} dependents
17+
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
18+
with:
19+
which: ${{ inputs.which }}
20+

.github/workflows/render-readme.yaml

-48
This file was deleted.

0 commit comments

Comments
 (0)