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