Running 'testthat.R' [52s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lutz)
  > 
  > test_check("lutz")
  Error : foo is not a valid time zone. See ?OlsonNames
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 1079 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tz_lookup2.R:4:3'): tz_lookup_coords works with method = accurate ──
  Error in `wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, 
      check = check, tessellate_tol = if (planar) {
          tessellate_tol_m/s2_earth_radius_meters()
      } else {
          Inf
      }))`: std::bad_alloc
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-tz_lookup2.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─lutz::tz_lookup_coords(70, 30, method = "accurate")
    5.   └─lutz:::tz_lookup_coords_accurate(lat, lon)
    6.     ├─lutz:::tz_lookup_accurate(ll_sf)
    7.     └─lutz:::tz_lookup_accurate.sf(ll_sf)
    8.       ├─base::suppressMessages(...)
    9.       │ └─base::withCallingHandlers(...)
   10.       ├─sf::st_set_geometry(sf::st_join(x, tz_sf), NULL)
   11.       ├─sf::st_join(x, tz_sf)
   12.       └─sf:::st_join.sf(x, tz_sf)
   13.         ├─sf (local) join(x, y, ...)
   14.         └─sf:::st_intersects.sf(x, y, ...)
   15.           └─sf:::st_geos_binop(...)
   16.             └─s2 (local) fn(x, y, s2::s2_options(model = model, ...))
   17.               ├─s2:::cpp_s2_intersects_matrix(...)
   18.               ├─s2::as_s2_geography(y)
   19.               └─sf:::as_s2_geography.sf(y)
   20.                 └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   21.                   ├─sf::st_as_s2(st_geometry(x), ...)
   22.                   └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   23.                     ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   24.                     └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   25.                       └─s2::s2_geog_from_wkb(x, oriented = oriented, check = check)
   26.                         ├─wk::wk_handle(...)
   27.                         └─wk:::wk_handle.wk_wkb(...)
  ── Error ('test-tz_lookup2.R:20:3'): tz_lookup_coords deals with NAs ───────────
  Error in `wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, 
      check = check, tessellate_tol = if (planar) {
          tessellate_tol_m/s2_earth_radius_meters()
      } else {
          Inf
      }))`: std::bad_alloc
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-tz_lookup2.R:20:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─lutz::tz_lookup_coords(c(NA_real_, 70), c(NA_real_, 30), method = "accurate")
    5.   └─lutz:::tz_lookup_coords_accurate(lat, lon)
    6.     ├─lutz:::tz_lookup_accurate(ll_sf)
    7.     └─lutz:::tz_lookup_accurate.sf(ll_sf)
    8.       ├─base::suppressMessages(...)
    9.       │ └─base::withCallingHandlers(...)
   10.       ├─sf::st_set_geometry(sf::st_join(x, tz_sf), NULL)
   11.       ├─sf::st_join(x, tz_sf)
   12.       └─sf:::st_join.sf(x, tz_sf)
   13.         ├─sf (local) join(x, y, ...)
   14.         └─sf:::st_intersects.sf(x, y, ...)
   15.           └─sf:::st_geos_binop(...)
   16.             └─s2 (local) fn(x, y, s2::s2_options(model = model, ...))
   17.               ├─s2:::cpp_s2_intersects_matrix(...)
   18.               ├─s2::as_s2_geography(y)
   19.               └─sf:::as_s2_geography.sf(y)
   20.                 └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   21.                   ├─sf::st_as_s2(st_geometry(x), ...)
   22.                   └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   23.                     ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   24.                     └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   25.                       └─s2::s2_geog_from_wkb(x, oriented = oriented, check = check)
   26.                         ├─wk::wk_handle(...)
   27.                         └─wk:::wk_handle.wk_wkb(...)
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 1079 ]
  Error: Test failures
  Execution halted