Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Dec 8, 2024
1 parent d5b0043 commit bd986ca
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
extra-packages: any::covr, any::xml2
needs: coverage

- name: Test coverage
if: ${{ !cancelled() }}
run: |
Expand Down
3 changes: 0 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-4035-0289
year: '2024'
identifiers:
- type: url
value: https://arxiv.org/abs/1403.2805
doi: 10.32614/CRAN.package.jsonlite
version: '>= 1.7.0'
- type: software
Expand Down
106 changes: 53 additions & 53 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
"applicationCategory": "Meteorology",
"isPartOf": "https://ropenspain.es/",
"keywords": ["aemet", "climate", "cran", "data", "forecast-api", "r", "r-package", "ropenspain", "rstats", "science", "spain", "weather-api"],
"fileSize": "871.337KB",
"fileSize": "866.196KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
9 changes: 9 additions & 0 deletions tests/testthat/_snaps/aemet_monthly.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,12 @@
Condition
Error in `aemet_monthly_period_all()`:
! Start year need to be numeric

---

Code
aemet_monthly_period_all(end = "NULL")
Condition
Error in `aemet_monthly_period_all()`:
! End year need to be numeric

35 changes: 17 additions & 18 deletions vignettes/climaemet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,23 @@ See how a `tibble` is displayed:

aemet_last_obs("9434")
#> # A tibble: 13 × 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-12-07 08:00:00 0 249 4.6 3.3 266 41.7 275
#> 2 9434 -1.00 2024-12-07 09:00:00 0 249 4.1 2.8 285 41.7 285
#> 3 9434 -1.00 2024-12-07 10:00:00 0 249 8.8 5.4 315 41.7 318
#> 4 9434 -1.00 2024-12-07 11:00:00 0 249 10.8 7.3 309 41.7 303
#> 5 9434 -1.00 2024-12-07 12:00:00 0 249 19.8 10.7 323 41.7 325
#> 6 9434 -1.00 2024-12-07 13:00:00 0 249 16 9.7 317 41.7 313
#> 7 9434 -1.00 2024-12-07 14:00:00 0 249 16.3 10.8 323 41.7 328
#> 8 9434 -1.00 2024-12-07 15:00:00 0 249 17.1 10.2 320 41.7 313
#> 9 9434 -1.00 2024-12-07 16:00:00 0 249 15.9 11.1 321 41.7 315
#> 10 9434 -1.00 2024-12-07 17:00:00 0 249 15.7 7.6 315 41.7 323
#> 11 9434 -1.00 2024-12-07 18:00:00 0 249 12.3 6.6 309 41.7 333
#> 12 9434 -1.00 2024-12-07 19:00:00 0 249 14 8.3 317 41.7 323
#> 13 9434 -1.00 2024-12-07 20:00:00 0 249 15.3 5.9 321 41.7 315
#> # ℹ 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>
#> idema lon fint prec alt vmax vv dv lat dmax ubi pres hr
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> <dbl> <dbl>
#> 1 9434 -1.00 2024-12-07 19:00:00 0 249 14 8.3 317 41.7 323 ZARAGOZA… 993. 66
#> 2 9434 -1.00 2024-12-07 20:00:00 0 249 15.3 5.9 321 41.7 315 ZARAGOZA… 993. 74
#> 3 9434 -1.00 2024-12-07 21:00:00 0 249 15.7 10 310 41.7 290 ZARAGOZA… 993. 70
#> 4 9434 -1.00 2024-12-07 22:00:00 0 249 15.6 9 311 41.7 315 ZARAGOZA… 993. 74
#> 5 9434 -1.00 2024-12-07 23:00:00 0 249 13 6.9 310 41.7 310 ZARAGOZA… 993. 78
#> 6 9434 -1.00 2024-12-08 00:00:00 0 249 13.3 8.7 308 41.7 308 ZARAGOZA… 992. 78
#> 7 9434 -1.00 2024-12-08 01:00:00 0 249 13.3 7.9 297 41.7 320 ZARAGOZA… 992. 73
#> 8 9434 -1.00 2024-12-08 02:00:00 0 249 13.7 8.9 298 41.7 308 ZARAGOZA… 991. 69
#> 9 9434 -1.00 2024-12-08 03:00:00 0 249 15.1 10.7 299 41.7 298 ZARAGOZA… 991 65
#> 10 9434 -1.00 2024-12-08 04:00:00 0 249 16.3 9.2 298 41.7 308 ZARAGOZA… 991. 74
#> 11 9434 -1.00 2024-12-08 05:00:00 0 249 17.1 12.4 309 41.7 300 ZARAGOZA… 990. 75
#> 12 9434 -1.00 2024-12-08 06:00:00 0 249 18 5.9 297 41.7 305 ZARAGOZA… 991. 86
#> 13 9434 -1.00 2024-12-08 07:00:00 0.6 249 17 5.1 320 41.7 330 ZARAGOZA… 992. 91
#> # ℹ 12 more variables: 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.

0 comments on commit bd986ca

Please sign in to comment.