Running ‘testthat.R’ [8s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GISSB)
  > 
  > testthat::test_check("GISSB")
  Saving _problems/test-address_to_coords-4.R
  Saving _problems/test-coords_to_google-6.R
  Saving _problems/test-coords_to_node-19.R
  [ FAIL 3 | WARN 5 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-address_to_coords.R:4:3'): Testing address_to_coords ───────────
  Error: Please install xml2 package
  Backtrace:
      ▆
   1. └─GISSB::address_to_coords(zip_code = "0177", address = "Akersveien 26") at test-address_to_coords.R:4:3
   2.   └─base (local) address_coord_func_vec(zip_code, address)
   3.     ├─base::do.call(...)
   4.     └─base::mapply(...)
   5.       └─GISSB (local) `<fn>`(zip_code = dots[[1L]][[1L]], address = dots[[2L]][[1L]])
   6.         └─httr::content(resp)
   7.           └─httr:::parse_auto(raw, type, encoding, ...)
   8.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   9.               └─httr:::need_package("xml2")
  ── Error ('test-coords_to_google.R:4:3'): Testing coords_to_google ─────────────
  Error: Please install xml2 package
  Backtrace:
       ▆
    1. ├─... %>% coords_to_google() at test-coords_to_google.R:4:3
    2. ├─GISSB::coords_to_google(.)
    3. │ ├─... %>% sf::st_transform(coords, crs = crs_out)
    4. │ └─sf::st_transform(coords, crs = 4326)
    5. ├─sf::st_transform(., coords, crs = crs_out)
    6. ├─dplyr::select(., -coords_google_1, -coords_google_2)
    7. ├─dplyr::mutate(...)
    8. ├─dplyr::mutate(...)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::mutate(...)
   11. └─GISSB::address_to_coords(zip_code = "0177", address = "Akersveien 26")
   12.   └─base (local) address_coord_func_vec(zip_code, address)
   13.     ├─base::do.call(...)
   14.     └─base::mapply(...)
   15.       └─GISSB (local) `<fn>`(zip_code = dots[[1L]][[1L]], address = dots[[2L]][[1L]])
   16.         └─httr::content(resp)
   17.           └─httr:::parse_auto(raw, type, encoding, ...)
   18.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   19.               └─httr:::need_package("xml2")
  ── Error ('test-coords_to_node.R:18:3'): Testing coords_to_node ────────────────
  Error: Please install xml2 package
  Backtrace:
      ▆
   1. └─GISSB::address_to_coords(zip_code = "0177", address = "Akersveien 26") at test-coords_to_node.R:18:3
   2.   └─base (local) address_coord_func_vec(zip_code, address)
   3.     ├─base::do.call(...)
   4.     └─base::mapply(...)
   5.       └─GISSB (local) `<fn>`(zip_code = dots[[1L]][[1L]], address = dots[[2L]][[1L]])
   6.         └─httr::content(resp)
   7.           └─httr:::parse_auto(raw, type, encoding, ...)
   8.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   9.               └─httr:::need_package("xml2")
  
  [ FAIL 3 | WARN 5 | SKIP 0 | PASS 11 ]
  Error:
  ! Test failures.
  Execution halted