Last updated on 2025-05-14 02:50:18 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.18.0 | 16.26 | 227.31 | 243.57 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.18.1 | 11.02 | 184.55 | 195.57 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.18.1 | 468.86 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.18.1 | 470.68 | OK | |||
r-devel-windows-x86_64 | 0.18.0 | 18.00 | 287.00 | 305.00 | OK | |
r-patched-linux-x86_64 | 0.18.0 | 16.74 | 214.15 | 230.89 | ERROR | |
r-release-linux-x86_64 | 0.18.0 | 14.44 | 214.73 | 229.17 | ERROR | |
r-release-macos-arm64 | 0.18.1 | 137.00 | OK | |||
r-release-macos-x86_64 | 0.18.1 | 255.00 | ERROR | |||
r-release-windows-x86_64 | 0.18.1 | 13.00 | 277.00 | 290.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.0
Check: examples
Result: ERROR
Running examples in ‘metR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ReadNetCDF
> ### Title: Read NetCDF files.
> ### Aliases: ReadNetCDF GlanceNetCDF
>
> ### ** Examples
>
> file <- system.file("extdata", "temperature.nc", package = "metR")
> # Get a list of variables.
> variables <- GlanceNetCDF(file)
Error in check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") :
ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Calls: GlanceNetCDF -> ReadNetCDF -> check_packages -> stopf
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
EOF 4.772 0.174 6.548
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.18.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [53s/48s]
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 10 | WARN 1 | SKIP 20 | PASS 166 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test-GetTopography.R:3:5', 'test-ReadNetCDF.R:66:5',
'test-vis-arrow.R:10:5', 'test-vis-arrow.R:36:5', 'test-vis-contour2.R:10:5',
'test-vis-contour2.R:24:5', 'test-vis-contour2.R:35:5',
'test-vis-contour2.R:52:5', 'test-vis-contour2.R:71:5',
'test-vis-contour_fill.R:10:5', 'test-vis-contour_fill.R:24:5',
'test-vis-contour_fill.R:40:5', 'test-vis-discretised-scale.R:13:5',
'test-vis-geom-relief.R:9:5', 'test-vis-guide_colorstrip.R:13:5',
'test-vis-streamline.R:22:5', 'test-vis-streamline.R:28:5',
'test-vis-text-contour.R:11:5', 'test-vis-text-contour.R:67:5',
'test-vis-text-contour.R:78:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ReadNetCDF.R:6:5'): returns a data.table ───────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:6:5
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file)
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:11:5'): GlanceNetCDF prints nicely ────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_known_output(print(GlanceNetCDF(file)), "GlanceNetCDF") at test-ReadNetCDF.R:11:5
2. │ ├─base::append(act, eval_with_output(object, print = print, width = width))
3. │ └─testthat:::eval_with_output(object, print = print, width = width)
4. │ ├─withr::with_output_sink(path, withVisible(code))
5. │ │ └─base::force(code)
6. │ └─base::withVisible(code)
7. ├─base::print(GlanceNetCDF(file))
8. └─metR::GlanceNetCDF(file)
9. └─metR::ReadNetCDF(file, out = "vars")
10. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
11. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:16:5'): subsetting works ──────────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, subset = list(lat = -90:20)) at test-ReadNetCDF.R:16:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:32:9'): naming works ──────────────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-ReadNetCDF.R:31:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file, vars = c(air2 = "air")) at test-ReadNetCDF.R:32:9
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:38:5'): different outs work ───────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:38:5
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file)
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:47:5'): time dimension without 'since' works ──────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file) at test-ReadNetCDF.R:47:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:53:5'): can parse calendar correcly ───────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, vars = "zg") at test-ReadNetCDF.R:53:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Failure ('test-ReadNetCDF.R:60:5'): can read from nc_open ───────────────────
`ReadNetCDF(nc)` threw an error.
Message: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Class: simpleError/error/condition
Backtrace:
▆
1. ├─testthat::expect_error(ReadNetCDF(nc), NA) at test-ReadNetCDF.R:60:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─metR::ReadNetCDF(nc)
7. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
8. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:76:5'): can read variables with no dimension ──────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_equal(ReadNetCDF(file, "projection"), 1) at test-ReadNetCDF.R:76:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file, "projection")
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:82:5'): function in vars works ────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, vars = "o3_conc") at test-ReadNetCDF.R:82:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
[ FAIL 10 | WARN 1 | SKIP 20 | PASS 166 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.18.0
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:33-42 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `check_packages()`:
! ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
---
Backtrace:
▆
1. └─metR::GlanceNetCDF(file)
2. └─metR::ReadNetCDF(file, out = "vars")
3. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
4. └─metR:::stopf(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Working-with-data.Rmd' failed with diagnostics:
ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
--- failed re-building ‘Working-with-data.Rmd’
SUMMARY: processing the following file failed:
‘Working-with-data.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.18.0
Check: examples
Result: ERROR
Running examples in ‘metR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ReadNetCDF
> ### Title: Read NetCDF files.
> ### Aliases: ReadNetCDF GlanceNetCDF
>
> ### ** Examples
>
> file <- system.file("extdata", "temperature.nc", package = "metR")
> # Get a list of variables.
> variables <- GlanceNetCDF(file)
Error in check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") :
ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Calls: GlanceNetCDF -> ReadNetCDF -> check_packages -> stopf
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
EOF 4.481 0.218 5.285
Flavor: r-patched-linux-x86_64
Version: 0.18.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [53s/68s]
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 10 | WARN 1 | SKIP 20 | PASS 166 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test-GetTopography.R:3:5', 'test-ReadNetCDF.R:66:5',
'test-vis-arrow.R:10:5', 'test-vis-arrow.R:36:5', 'test-vis-contour2.R:10:5',
'test-vis-contour2.R:24:5', 'test-vis-contour2.R:35:5',
'test-vis-contour2.R:52:5', 'test-vis-contour2.R:71:5',
'test-vis-contour_fill.R:10:5', 'test-vis-contour_fill.R:24:5',
'test-vis-contour_fill.R:40:5', 'test-vis-discretised-scale.R:13:5',
'test-vis-geom-relief.R:9:5', 'test-vis-guide_colorstrip.R:13:5',
'test-vis-streamline.R:22:5', 'test-vis-streamline.R:28:5',
'test-vis-text-contour.R:11:5', 'test-vis-text-contour.R:67:5',
'test-vis-text-contour.R:78:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ReadNetCDF.R:6:5'): returns a data.table ───────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:6:5
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file)
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:11:5'): GlanceNetCDF prints nicely ────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_known_output(print(GlanceNetCDF(file)), "GlanceNetCDF") at test-ReadNetCDF.R:11:5
2. │ ├─base::append(act, eval_with_output(object, print = print, width = width))
3. │ └─testthat:::eval_with_output(object, print = print, width = width)
4. │ ├─withr::with_output_sink(path, withVisible(code))
5. │ │ └─base::force(code)
6. │ └─base::withVisible(code)
7. ├─base::print(GlanceNetCDF(file))
8. └─metR::GlanceNetCDF(file)
9. └─metR::ReadNetCDF(file, out = "vars")
10. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
11. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:16:5'): subsetting works ──────────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, subset = list(lat = -90:20)) at test-ReadNetCDF.R:16:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:32:9'): naming works ──────────────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-ReadNetCDF.R:31:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file, vars = c(air2 = "air")) at test-ReadNetCDF.R:32:9
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:38:5'): different outs work ───────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:38:5
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file)
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:47:5'): time dimension without 'since' works ──────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file) at test-ReadNetCDF.R:47:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:53:5'): can parse calendar correcly ───────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, vars = "zg") at test-ReadNetCDF.R:53:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Failure ('test-ReadNetCDF.R:60:5'): can read from nc_open ───────────────────
`ReadNetCDF(nc)` threw an error.
Message: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Class: simpleError/error/condition
Backtrace:
▆
1. ├─testthat::expect_error(ReadNetCDF(nc), NA) at test-ReadNetCDF.R:60:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─metR::ReadNetCDF(nc)
7. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
8. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:76:5'): can read variables with no dimension ──────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_equal(ReadNetCDF(file, "projection"), 1) at test-ReadNetCDF.R:76:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file, "projection")
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:82:5'): function in vars works ────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, vars = "o3_conc") at test-ReadNetCDF.R:82:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
[ FAIL 10 | WARN 1 | SKIP 20 | PASS 166 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.18.0
Check: examples
Result: ERROR
Running examples in ‘metR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ReadNetCDF
> ### Title: Read NetCDF files.
> ### Aliases: ReadNetCDF GlanceNetCDF
>
> ### ** Examples
>
> file <- system.file("extdata", "temperature.nc", package = "metR")
> # Get a list of variables.
> variables <- GlanceNetCDF(file)
Error in check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") :
ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Calls: GlanceNetCDF -> ReadNetCDF -> check_packages -> stopf
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
EOF 4.585 0.181 6.301
Flavor: r-release-linux-x86_64
Version: 0.18.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [53s/64s]
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 10 | WARN 1 | SKIP 20 | PASS 166 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test-GetTopography.R:3:5', 'test-ReadNetCDF.R:66:5',
'test-vis-arrow.R:10:5', 'test-vis-arrow.R:36:5', 'test-vis-contour2.R:10:5',
'test-vis-contour2.R:24:5', 'test-vis-contour2.R:35:5',
'test-vis-contour2.R:52:5', 'test-vis-contour2.R:71:5',
'test-vis-contour_fill.R:10:5', 'test-vis-contour_fill.R:24:5',
'test-vis-contour_fill.R:40:5', 'test-vis-discretised-scale.R:13:5',
'test-vis-geom-relief.R:9:5', 'test-vis-guide_colorstrip.R:13:5',
'test-vis-streamline.R:22:5', 'test-vis-streamline.R:28:5',
'test-vis-text-contour.R:11:5', 'test-vis-text-contour.R:67:5',
'test-vis-text-contour.R:78:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ReadNetCDF.R:6:5'): returns a data.table ───────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:6:5
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file)
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:11:5'): GlanceNetCDF prints nicely ────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_known_output(print(GlanceNetCDF(file)), "GlanceNetCDF") at test-ReadNetCDF.R:11:5
2. │ ├─base::append(act, eval_with_output(object, print = print, width = width))
3. │ └─testthat:::eval_with_output(object, print = print, width = width)
4. │ ├─withr::with_output_sink(path, withVisible(code))
5. │ │ └─base::force(code)
6. │ └─base::withVisible(code)
7. ├─base::print(GlanceNetCDF(file))
8. └─metR::GlanceNetCDF(file)
9. └─metR::ReadNetCDF(file, out = "vars")
10. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
11. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:16:5'): subsetting works ──────────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, subset = list(lat = -90:20)) at test-ReadNetCDF.R:16:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:32:9'): naming works ──────────────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-ReadNetCDF.R:31:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file, vars = c(air2 = "air")) at test-ReadNetCDF.R:32:9
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:38:5'): different outs work ───────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:38:5
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file)
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:47:5'): time dimension without 'since' works ──────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file) at test-ReadNetCDF.R:47:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:53:5'): can parse calendar correcly ───────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, vars = "zg") at test-ReadNetCDF.R:53:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
── Failure ('test-ReadNetCDF.R:60:5'): can read from nc_open ───────────────────
`ReadNetCDF(nc)` threw an error.
Message: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Class: simpleError/error/condition
Backtrace:
▆
1. ├─testthat::expect_error(ReadNetCDF(nc), NA) at test-ReadNetCDF.R:60:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─metR::ReadNetCDF(nc)
7. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
8. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:76:5'): can read variables with no dimension ──────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. ├─testthat::expect_equal(ReadNetCDF(file, "projection"), 1) at test-ReadNetCDF.R:76:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─metR::ReadNetCDF(file, "projection")
5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
6. └─metR:::stopf(...)
── Error ('test-ReadNetCDF.R:82:5'): function in vars works ────────────────────
Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages PCICt. Install them with: 'install.packages(c("PCICt"))'.
Backtrace:
▆
1. └─metR::ReadNetCDF(file, vars = "o3_conc") at test-ReadNetCDF.R:82:5
2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")
3. └─metR:::stopf(...)
[ FAIL 10 | WARN 1 | SKIP 20 | PASS 166 ]
Error: Test failures
Execution halted
Flavor: r-release-linux-x86_64
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