Last updated on 2025-05-19 19:50:46 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.18.1 | 14.83 | 274.89 | 289.72 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.18.1 | 9.36 | 186.82 | 196.18 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.18.1 | 485.41 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.18.1 | 473.37 | OK | |||
r-devel-windows-x86_64 | 0.18.1 | 17.00 | 314.00 | 331.00 | OK | |
r-patched-linux-x86_64 | 0.18.1 | 16.28 | 262.15 | 278.43 | OK | |
r-release-linux-x86_64 | 0.18.1 | 15.74 | 258.37 | 274.11 | OK | |
r-release-macos-arm64 | 0.18.1 | 137.00 | OK | |||
r-release-macos-x86_64 | 0.18.1 | 138.00 | ERROR | |||
r-release-windows-x86_64 | 0.18.1 | 17.00 | 311.00 | 328.00 | OK | |
r-oldrel-macos-arm64 | 0.18.1 | 134.00 | OK | |||
r-oldrel-macos-x86_64 | 0.18.1 | 346.00 | OK | |||
r-oldrel-windows-x86_64 | 0.18.0 | 25.00 | 377.00 | 402.00 | OK |
Version: 0.18.1
Check: examples
Result: ERROR
Running examples in ‘metR-Ex.R’ failed
The error most likely occurred in:
> ### Name: MaskLand
> ### Title: Mask
> ### Aliases: MaskLand
>
> ### ** Examples
>
> ## Don't show:
> if ( requireNamespace("maps")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Make a sea-land mask
+ mask <- temperature[lev == 1000, .(lon = lon, lat = lat, land = MaskLand(lon, lat))]
+ temperature <- temperature[mask, on = c("lon", "lat")]
+ library(ggplot2)
+
+ ggplot(mask, aes(lon, lat)) +
+ geom_raster(aes(fill = land))
+
+ # Take the temperature difference between land and ocean
+ diftemp <- temperature[,
+ .(tempdif = mean(air[land == TRUE]) - mean(air[land == FALSE])),
+ by = .(lat, lev)]
+
+ ggplot(diftemp, aes(lat, lev)) +
+ geom_contour(aes(z = tempdif, color = after_stat(level))) +
+ scale_y_level() +
+ scale_x_latitude() +
+ scale_color_divergent()
+ ## Don't show:
+ }) # examplesIf
> mask <- temperature[lev == 1000, .(lon = lon, lat = lat, land = MaskLand(lon,
+ lat))]
Error in loadNamespace(x) : there is no package called ‘s2’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Flavor: r-release-macos-x86_64
Version: 0.18.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [19s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(metR)
> # library(vdiffr)
>
> on_cran <- !isTRUE(as.logical(Sys.getenv("NOT_CRAN", "false")))
> if (on_cran) data.table::setDTthreads(2)
>
> test_check("metR")
[ FAIL 3 | WARN 1 | SKIP 20 | PASS 177 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test-GetTopography.R:3:5', 'test-ReadNetCDF.R:66:5',
'test-vis-arrow.R:13:5', 'test-vis-arrow.R:39:5', 'test-vis-contour2.R:11:5',
'test-vis-contour2.R:25:5', 'test-vis-contour2.R:36:5',
'test-vis-contour2.R:53:5', 'test-vis-contour2.R:72:5',
'test-vis-contour_fill.R:13:5', 'test-vis-contour_fill.R:27:5',
'test-vis-contour_fill.R:43:5', 'test-vis-discretised-scale.R:15:5',
'test-vis-geom-relief.R:11:5', 'test-vis-guide_colorstrip.R:14:5',
'test-vis-streamline.R:23:5', 'test-vis-streamline.R:29:5',
'test-vis-text-contour.R:13:5', 'test-vis-text-contour.R:69:5',
'test-vis-text-contour.R:80:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('tests.R:22:5'): Water is still water ────────────────────────────────
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 's2'
Backtrace:
▆
1. ├─testthat::expect_equal(MaskLand(120, 14), FALSE) at tests.R:22:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─metR::MaskLand(120, 14)
5. │ ├─sf::st_make_valid(seamask)
6. │ └─sf:::st_make_valid.sf(seamask)
7. │ ├─sf::st_set_geometry(x, st_make_valid(st_geometry(x), ...))
8. │ ├─sf::st_make_valid(st_geometry(x), ...)
9. │ └─sf:::st_make_valid.sfc(st_geometry(x), ...)
10. └─base::loadNamespace(x)
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('tests.R:30:5'): MaskLand respects boundaries ────────────────────────
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 's2'
Backtrace:
▆
1. ├─testthat::expect_equal(MaskLand(361, 15), MaskLand(1, 15)) at tests.R:30:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─metR::MaskLand(361, 15)
5. │ ├─sf::st_make_valid(seamask)
6. │ └─sf:::st_make_valid.sf(seamask)
7. │ ├─sf::st_set_geometry(x, st_make_valid(st_geometry(x), ...))
8. │ ├─sf::st_make_valid(st_geometry(x), ...)
9. │ └─sf:::st_make_valid.sfc(st_geometry(x), ...)
10. └─base::loadNamespace(x)
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('tests.R:37:5'): MaskLand respects order ─────────────────────────────
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 's2'
Backtrace:
▆
1. ├─testthat::expect_equal(...) at tests.R:37:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─metR::MaskLand(c(120, 360 - 58), c(14, -34))
5. │ ├─sf::st_make_valid(seamask)
6. │ └─sf:::st_make_valid.sf(seamask)
7. │ ├─sf::st_set_geometry(x, st_make_valid(st_geometry(x), ...))
8. │ ├─sf::st_make_valid(st_geometry(x), ...)
9. │ └─sf:::st_make_valid.sfc(st_geometry(x), ...)
10. └─base::loadNamespace(x)
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
[ FAIL 3 | WARN 1 | SKIP 20 | PASS 177 ]
Error: Test failures
Execution halted
Flavor: r-release-macos-x86_64
Version: 0.18.1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘Visualization-tools.Rmd’ using knitr
--- finished re-building ‘Visualization-tools.Rmd’
--- re-building ‘Working-with-data.Rmd’ using knitr
Quitting from Working-with-data.Rmd:93-99 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `loadNamespace()`:
! there is no package called 's2'
---
Backtrace:
▆
1. ├─air[, `:=`(land, MaskLand(lon, lat))]
2. ├─data.table:::`[.data.table`(air, , `:=`(land, MaskLand(lon, lat)))
3. │ └─base::eval(jsub, SDenv, parent.frame())
4. │ └─base::eval(jsub, SDenv, parent.frame())
5. │ └─metR::MaskLand(lon, lat)
6. │ ├─sf::st_make_valid(seamask)
7. │ └─sf:::st_make_valid.sf(seamask)
8. │ ├─sf::st_set_geometry(x, st_make_valid(st_geometry(x), ...))
9. │ ├─sf::st_make_valid(st_geometry(x), ...)
10. │ └─sf:::st_make_valid.sfc(st_geometry(x), ...)
11. └─base::loadNamespace(x)
12. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
13. └─base (local) withOneRestart(expr, restarts[[1L]])
14. └─base (local) doWithOneRestart(return(expr), restart)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Working-with-data.Rmd' failed with diagnostics:
there is no package called 's2'
--- failed re-building ‘Working-with-data.Rmd’
SUMMARY: processing the following file failed:
‘Working-with-data.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-release-macos-x86_64