Skip to content

Commit

Permalink
Add revdep check (#48)
Browse files Browse the repository at this point in the history
* Try revdep

* Revdep in windows

* Update docs with pkgdev

* revdepcheck

---------

Co-authored-by: Diego H <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 29, 2024
1 parent 046fc9e commit 3645bfe
Show file tree
Hide file tree
Showing 15 changed files with 177 additions and 36 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
workflow_dispatch:

name: revdepcheck

jobs:
revdepcheck:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: windows-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:
use-public-rspm: false

- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: revdep
extra-packages: |
local::.
r-lib/revdepcheck
needs: check

- name: revdepcheck
run: |
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m 'revdepcheck' || echo "No changes to commit"
git push origin || echo "No changes to commit"
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,20 @@ library(climaemet)
# See a tibble in action

aemet_last_obs("9434")
#> # A tibble: 23 × 25
#> # A tibble: 24 × 25
#> idema lon fint prec alt vmax vv dv lat dmax
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9434 -1.00 2024-01-28 13:00:00 0 249 5 3.1 100 41.7 85
#> 2 9434 -1.00 2024-01-28 14:00:00 0 249 4.8 3.3 120 41.7 133
#> 3 9434 -1.00 2024-01-28 15:00:00 0 249 5.4 3.5 116 41.7 133
#> 4 9434 -1.00 2024-01-28 16:00:00 0 249 4.9 2.7 112 41.7 120
#> 5 9434 -1.00 2024-01-28 17:00:00 0 249 3.4 1.5 105 41.7 95
#> 6 9434 -1.00 2024-01-28 18:00:00 0 249 3.2 1.6 150 41.7 148
#> 7 9434 -1.00 2024-01-28 19:00:00 0 249 4 2.3 139 41.7 140
#> 8 9434 -1.00 2024-01-28 20:00:00 0 249 3.8 2.8 122 41.7 133
#> 9 9434 -1.00 2024-01-28 21:00:00 0 249 3.9 2.2 132 41.7 138
#> 10 9434 -1.00 2024-01-28 22:00:00 0 249 3.4 2.3 149 41.7 153
#> # ℹ 13 more rows
#> 1 9434 -1.00 2024-01-28 21:00:00 0 249 3.9 2.2 132 41.7 138
#> 2 9434 -1.00 2024-01-28 22:00:00 0 249 3.4 2.3 149 41.7 153
#> 3 9434 -1.00 2024-01-28 23:00:00 0 249 3.1 1.6 117 41.7 140
#> 4 9434 -1.00 2024-01-29 00:00:00 0 249 2.7 1.8 136 41.7 128
#> 5 9434 -1.00 2024-01-29 01:00:00 0 249 3.2 2.1 132 41.7 133
#> 6 9434 -1.00 2024-01-29 02:00:00 0 249 3.4 1.8 102 41.7 115
#> 7 9434 -1.00 2024-01-29 03:00:00 0 249 3.2 1.1 65 41.7 118
#> 8 9434 -1.00 2024-01-29 04:00:00 0 249 3.3 2.2 142 41.7 133
#> 9 9434 -1.00 2024-01-29 05:00:00 0 249 3 1.7 163 41.7 160
#> 10 9434 -1.00 2024-01-29 06:00:00 0 249 2.2 1.1 122 41.7 160
#> # ℹ 14 more rows
#> # ℹ 15 more variables: ubi <chr>, pres <dbl>, hr <dbl>, stdvv <dbl>, ts <dbl>,
#> # pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>,
#> # stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
Expand Down Expand Up @@ -167,14 +167,14 @@ data_observation <- aemet_last_obs(station)
knitr::kable(head(data_observation))
```

| idema | lon | fint | prec | alt | vmax | vv | dv | lat | dmax | ubi | pres | hr | stdvv | ts | pres_nmar | tamin | ta | tamax | tpr | stddv | inso | tss5cm | pacutp | tss20cm |
|:------|----------:|:--------------------|-----:|----:|-----:|----:|----:|---------:|-----:|:--------------------|------:|----:|------:|-----:|----------:|------:|----:|------:|----:|------:|-----:|-------:|-------:|--------:|
| 9434 | -1.004167 | 2024-01-28 13:00:00 | 0 | 249 | 5.0 | 3.1 | 100 | 41.66056 | 85 | ZARAGOZA AEROPUERTO | 999.0 | 97 | 0.6 | 9.7 | 1029.9 | 6.1 | 7.9 | 7.9 | 7.4 | 13 | 7.0 | 8.0 | 0 | 7.5 |
| 9434 | -1.004167 | 2024-01-28 14:00:00 | 0 | 249 | 4.8 | 3.3 | 120 | 41.66056 | 133 | ZARAGOZA AEROPUERTO | 998.6 | 90 | 0.5 | 10.9 | 1029.4 | 7.9 | 9.3 | 9.3 | 7.7 | 12 | 60.0 | 9.1 | 0 | 7.6 |
| 9434 | -1.004167 | 2024-01-28 15:00:00 | 0 | 249 | 5.4 | 3.5 | 116 | 41.66056 | 133 | ZARAGOZA AEROPUERTO | 998.1 | 89 | 0.5 | 11.3 | 1028.8 | 9.2 | 9.8 | 9.9 | 8.1 | 14 | 60.0 | 9.6 | 0 | 7.8 |
| 9434 | -1.004167 | 2024-01-28 16:00:00 | 0 | 249 | 4.9 | 2.7 | 112 | 41.66056 | 120 | ZARAGOZA AEROPUERTO | 998.2 | 90 | 0.4 | 10.7 | 1028.9 | 9.7 | 9.9 | 10.0 | 8.4 | 13 | 60.0 | 9.8 | 0 | 8.1 |
| 9434 | -1.004167 | 2024-01-28 17:00:00 | 0 | 249 | 3.4 | 1.5 | 105 | 41.66056 | 95 | ZARAGOZA AEROPUERTO | 998.5 | 95 | 0.5 | 8.2 | 1029.3 | 8.4 | 8.4 | 9.9 | 7.7 | 25 | 31.9 | 9.5 | 0 | 8.4 |
| 9434 | -1.004167 | 2024-01-28 18:00:00 | 0 | 249 | 3.2 | 1.6 | 150 | 41.66056 | 148 | ZARAGOZA AEROPUERTO | 998.8 | 99 | 0.4 | 7.5 | 1029.7 | 7.6 | 7.6 | 8.4 | 7.4 | 14 | 0.0 | 9.1 | 0 | 8.6 |
| idema | lon | fint | prec | alt | vmax | vv | dv | lat | dmax | ubi | pres | hr | stdvv | ts | pres_nmar | tamin | ta | tamax | tpr | stddv | inso | tss5cm | pacutp | tss20cm |
|:------|----------:|:--------------------|-----:|----:|-----:|----:|----:|---------:|-----:|:--------------------|-------:|----:|------:|----:|----------:|------:|----:|------:|----:|------:|-----:|-------:|-------:|--------:|
| 9434 | -1.004167 | 2024-01-28 21:00:00 | 0 | 249 | 3.9 | 2.2 | 132 | 41.66056 | 138 | ZARAGOZA AEROPUERTO | 999.7 | 100 | 0.3 | 6.6 | 1030.8 | 6.6 | 6.6 | 7.2 | 6.5 | 11 | 0 | 8.3 | 0 | 8.7 |
| 9434 | -1.004167 | 2024-01-28 22:00:00 | 0 | 249 | 3.4 | 2.3 | 149 | 41.66056 | 153 | ZARAGOZA AEROPUERTO | 999.7 | 100 | 0.5 | 6.7 | 1030.7 | 6.5 | 6.7 | 6.7 | 6.7 | 10 | 0 | 8.1 | 0 | 8.7 |
| 9434 | -1.004167 | 2024-01-28 23:00:00 | 0 | 249 | 3.1 | 1.6 | 117 | 41.66056 | 140 | ZARAGOZA AEROPUERTO | 1000.1 | 100 | 0.2 | 5.8 | 1031.3 | 5.8 | 5.8 | 6.7 | 5.8 | 8 | 0 | 7.9 | 0 | 8.6 |
| 9434 | -1.004167 | 2024-01-29 00:00:00 | 0 | 249 | 2.7 | 1.8 | 136 | 41.66056 | 128 | ZARAGOZA AEROPUERTO | 1000.2 | 100 | 0.3 | 5.5 | 1031.4 | 5.5 | 5.5 | 5.9 | 5.5 | 8 | 0 | 7.8 | 0 | 8.6 |
| 9434 | -1.004167 | 2024-01-29 01:00:00 | 0 | 249 | 3.2 | 2.1 | 132 | 41.66056 | 133 | ZARAGOZA AEROPUERTO | 1000.2 | 100 | 0.2 | 4.7 | 1031.5 | 4.9 | 4.9 | 5.6 | 5.0 | 6 | 0 | 7.6 | 0 | 8.5 |
| 9434 | -1.004167 | 2024-01-29 02:00:00 | 0 | 249 | 3.4 | 1.8 | 102 | 41.66056 | 115 | ZARAGOZA AEROPUERTO | 1000.0 | 100 | 0.2 | 4.4 | 1031.3 | 4.5 | 4.5 | 4.9 | 4.5 | 8 | 0 | 7.2 | 0 | 8.5 |

``` r

Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.2 (2023-10-31)",
"runtimePlatform": "R version 4.3.2 (2023-10-31 ucrt)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -289,7 +289,7 @@
},
"applicationCategory": "Meteorology",
"isPartOf": "https://ropenspain.es/",
"fileSize": "691.26KB",
"fileSize": "698.724KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
Binary file modified data/climaemet_9434_climatogram.rda
Binary file not shown.
Binary file modified data/climaemet_9434_temp.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"runtimePlatform": "R version 4.3.2 (2023-10-31)",
"runtimePlatform": "R version 4.3.2 (2023-10-31 ucrt)",
"version": "1.2.0.9000"
},
{
Expand Down
Binary file modified man/figures/README-spatial-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
checks
library
checks.noindex
library.noindex
data.sqlite
*.html
72 changes: 72 additions & 0 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Platform

|field |value |
|:--------|:---------------------------------------------------------------------|
|version |R version 4.3.2 (2023-10-31 ucrt) |
|os |Windows Server 2022 x64 (build 20348) |
|system |x86_64, mingw32 |
|ui |RTerm |
|language |(EN) |
|collate |English_United States.utf8 |
|ctype |English_United States.utf8 |
|tz |UTC |
|date |2024-01-29 |
|pandoc |2.19.2 @ C:\HOSTED~1\windows\pandoc\219~1.2\x64\PANDOC~1.2\pandoc.exe |

# Dependencies

|package |old |new |Δ |
|:------------|:-----|:----------|:--|
|climaemet |1.2.0 |1.2.0.9000 |* |
|askpass |1.2.0 |1.2.0 | |
|bit |4.0.5 |4.0.5 | |
|bit64 |4.0.5 |4.0.5 | |
|cli |3.6.2 |3.6.2 | |
|clipr |0.8.0 |0.8.0 | |
|colorspace |2.1-0 |2.1-0 | |
|cpp11 |0.4.7 |0.4.7 | |
|crayon |1.5.2 |1.5.2 | |
|curl |5.2.0 |5.2.0 | |
|dplyr |1.1.4 |1.1.4 | |
|fansi |1.0.6 |1.0.6 | |
|farver |2.1.1 |2.1.1 | |
|generics |0.1.3 |0.1.3 | |
|ggplot2 |3.4.4 |3.4.4 | |
|glue |1.7.0 |1.7.0 | |
|gtable |0.3.4 |0.3.4 | |
|hms |1.1.3 |1.1.3 | |
|httr |1.4.7 |1.4.7 | |
|isoband |0.2.7 |0.2.7 | |
|jsonlite |1.8.8 |1.8.8 | |
|labeling |0.4.3 |0.4.3 | |
|lifecycle |1.0.4 |1.0.4 | |
|magrittr |2.0.3 |2.0.3 | |
|mime |0.12 |0.12 | |
|munsell |0.5.0 |0.5.0 | |
|openssl |2.1.1 |2.1.1 | |
|pillar |1.9.0 |1.9.0 | |
|pkgconfig |2.0.3 |2.0.3 | |
|prettyunits |1.2.0 |1.2.0 | |
|progress |1.2.3 |1.2.3 | |
|purrr |1.0.2 |1.0.2 | |
|R6 |2.5.1 |2.5.1 | |
|rappdirs |0.3.3 |0.3.3 | |
|RColorBrewer |1.1-3 |1.1-3 | |
|readr |2.1.5 |2.1.5 | |
|rlang |1.1.3 |1.1.3 | |
|scales |1.3.0 |1.3.0 | |
|stringi |1.8.3 |1.8.3 | |
|stringr |1.5.1 |1.5.1 | |
|sys |3.4.2 |3.4.2 | |
|tibble |3.2.1 |3.2.1 | |
|tidyr |1.3.1 |1.3.1 | |
|tidyselect |1.2.0 |1.2.0 | |
|tzdb |0.4.0 |0.4.0 | |
|utf8 |1.2.4 |1.2.4 | |
|vctrs |0.6.5 |0.6.5 | |
|viridisLite |0.4.2 |0.4.2 | |
|vroom |1.6.5 |1.6.5 | |
|withr |3.0.0 |3.0.0 | |

# Revdeps

7 changes: 7 additions & 0 deletions revdep/cran.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## revdepcheck results

We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages

1 change: 1 addition & 0 deletions revdep/failures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*Wow, no problems at all. :)*
1 change: 1 addition & 0 deletions revdep/problems.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*Wow, no problems at all. :)*
28 changes: 15 additions & 13 deletions vignettes/climaemet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,22 @@ See how a tibble is displayed:

aemet_last_obs("9434")
#> # A tibble: 24 × 25
#> idema lon fint prec alt vmax vv dv lat dmax ubi pres hr stdvv ts pres_nmar tamin ta tamax tpr stddv inso
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9434 -1.00 2024-01-28 12:00:00 0 249 4.8 3.1 111 41.7 118 ZARAGOZA … 1000. 100 0.6 7 1031. 5.3 6.1 6.1 6.1 14 0
#> 2 9434 -1.00 2024-01-28 13:00:00 0 249 5 3.1 100 41.7 85 ZARAGOZA … 999 97 0.6 9.7 1030. 6.1 7.9 7.9 7.4 13 7
#> 3 9434 -1.00 2024-01-28 14:00:00 0 249 4.8 3.3 120 41.7 133 ZARAGOZA … 999. 90 0.5 10.9 1029. 7.9 9.3 9.3 7.7 12 60
#> 4 9434 -1.00 2024-01-28 15:00:00 0 249 5.4 3.5 116 41.7 133 ZARAGOZA … 998. 89 0.5 11.3 1029. 9.2 9.8 9.9 8.1 14 60
#> 5 9434 -1.00 2024-01-28 16:00:00 0 249 4.9 2.7 112 41.7 120 ZARAGOZA … 998. 90 0.4 10.7 1029. 9.7 9.9 10 8.4 13 60
#> 6 9434 -1.00 2024-01-28 17:00:00 0 249 3.4 1.5 105 41.7 95 ZARAGOZA … 998. 95 0.5 8.2 1029. 8.4 8.4 9.9 7.7 25 31.9
#> 7 9434 -1.00 2024-01-28 18:00:00 0 249 3.2 1.6 150 41.7 148 ZARAGOZA … 999. 99 0.4 7.5 1030. 7.6 7.6 8.4 7.4 14 0
#> 8 9434 -1.00 2024-01-28 19:00:00 0 249 4 2.3 139 41.7 140 ZARAGOZA … 999. 100 0.6 7.3 1030. 7.3 7.3 7.6 7.3 10 0
#> 9 9434 -1.00 2024-01-28 20:00:00 0 249 3.8 2.8 122 41.7 133 ZARAGOZA … 1000. 100 0.4 7.2 1031. 7.2 7.2 7.4 7.1 9 0
#> 10 9434 -1.00 2024-01-28 21:00:00 0 249 3.9 2.2 132 41.7 138 ZARAGOZA … 1000. 100 0.3 6.6 1031. 6.6 6.6 7.2 6.5 11 0
#> idema lon fint prec alt vmax vv dv lat dmax
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9434 -1.00 2024-01-28 21:00:00 0 249 3.9 2.2 132 41.7 138
#> 2 9434 -1.00 2024-01-28 22:00:00 0 249 3.4 2.3 149 41.7 153
#> 3 9434 -1.00 2024-01-28 23:00:00 0 249 3.1 1.6 117 41.7 140
#> 4 9434 -1.00 2024-01-29 00:00:00 0 249 2.7 1.8 136 41.7 128
#> 5 9434 -1.00 2024-01-29 01:00:00 0 249 3.2 2.1 132 41.7 133
#> 6 9434 -1.00 2024-01-29 02:00:00 0 249 3.4 1.8 102 41.7 115
#> 7 9434 -1.00 2024-01-29 03:00:00 0 249 3.2 1.1 65 41.7 118
#> 8 9434 -1.00 2024-01-29 04:00:00 0 249 3.3 2.2 142 41.7 133
#> 9 9434 -1.00 2024-01-29 05:00:00 0 249 3 1.7 163 41.7 160
#> 10 9434 -1.00 2024-01-29 06:00:00 0 249 2.2 1.1 122 41.7 160
#> # ℹ 14 more rows
#> # ℹ 3 more variables: tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
#> # ℹ 15 more variables: ubi <chr>, pres <dbl>, hr <dbl>, stdvv <dbl>, ts <dbl>,
#> # pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>,
#> # stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
```

Note that when possible, data representing dates and numbers are converted to
Expand Down
Binary file modified vignettes/example-gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/spatial-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3645bfe

Please sign in to comment.