Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(rosm)
  > 
  > test_check("rosm")
  <wk_grd_rct [768 x 768] => [-7514066 5322463 -6574807 6261721] with crs=EPSG:3857>
  List of 2
   $ data: 'nativeRaster' int [1:768, 1:768] -2108502 -2108502 -2108502 -2108502 -2108502 -2108502 -2108502 -2108502 -2108502 -2108502 ...
   $ bbox: wk_rct[1:1] [-7514066 5322463 -6574807 6261721]
   - attr(*, "class")= chr [1:2] "wk_grd_rct" "wk_grd"
  [ FAIL 1 | WARN 0 | SKIP 14 | PASS 77 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-raster.R:52:3', 'test-utils.R:3:3'
  • identical(Sys.getenv("R_ROSM_TEST_DEPRECATED"), "true") is not TRUE (10):
    'test-deprecated.R:3:3', 'test-deprecated.R:31:3', 'test-deprecated.R:61:3',
    'test-deprecated.R:114:3', 'test-deprecated.R:129:3',
    'test-deprecated.R:146:3', 'test-deprecated.R:174:3',
    'test-deprecated.R:194:3', 'test-deprecated.R:256:3',
    'test-deprecated.R:287:3'
  • sf cannot be loaded (2): 'test-tile-math.R:238:3', 'test-tile-math.R:277:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tile-math.R:119:3'): osm_tile_covering() works for arbitrary CRS bounds ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'sf'
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(...) at test-tile-math.R:119:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─rosm::osm_tile_covering(bounds, zoom = 1L)
   5. │ └─rosm::osm_ensure_native(bbox_grd)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 1 | WARN 0 | SKIP 14 | PASS 77 ]
  Error: Test failures
  Execution halted