Running ‘testthat.R’ [29s/29s]
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 2 | SKIP 20 | PASS 177 ]
  
  ══ 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:54:5', 'test-vis-contour2.R:73: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:14: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 ('tests.R:20:5'): Water is still water ────────────────────────────────
  Error in `check_packages(c("maps"), "MaskLand")`: MaskLand needs packages maps. Install them with: 'install.packages(c("maps"))'.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(MaskLand(120, 14), FALSE) at tests.R:20: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.   └─metR:::check_packages(c("maps"), "MaskLand")
   6.     └─metR:::stopf(...)
  ── Error ('tests.R:27:5'): MaskLand respects boundaries ────────────────────────
  Error in `check_packages(c("maps"), "MaskLand")`: MaskLand needs packages maps. Install them with: 'install.packages(c("maps"))'.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(MaskLand(361, 15), MaskLand(1, 15)) at tests.R:27: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.   └─metR:::check_packages(c("maps"), "MaskLand")
   6.     └─metR:::stopf(...)
  ── Error ('tests.R:33:5'): MaskLand respects order ─────────────────────────────
  Error in `check_packages(c("maps"), "MaskLand")`: MaskLand needs packages maps. Install them with: 'install.packages(c("maps"))'.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at tests.R:33: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.   └─metR:::check_packages(c("maps"), "MaskLand")
   6.     └─metR:::stopf(...)
  
  [ FAIL 3 | WARN 2 | SKIP 20 | PASS 177 ]
  Error: Test failures
  Execution halted