Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [45s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vcr)
  > test_check("rmangal")
  Loading required package: rmangal
  Processing id: 1035 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 72 	1/1  
                                                                               
  Processing id: 71 	1/1  
                                                                               
  Processing id: 1036 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 72 	1/1  
                                                                               
  Processing id: 71 	1/1  
                                                                               
  Processing id: 100 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 36 	1/1  
                                                                               
  Processing id: 38 	1/1  
                                                                               
  Processing id: 999999 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Found 1 datasets
  Data retrieval 100%   
                                                                               
  Processing id: 16 	1/1  
                                                                               
                                                                               
  No dataset found.
  `type` used, `query` ignored.
  Data retrieval 100%   
                                                                               
  Processing id: 24343 	1/12  
  Processing id: 24352 	2/12  
  Processing id: 24370 	3/12  
  Processing id: 24357 	4/12  
  Processing id: 25149 	5/12  
  Processing id: 25149 	6/12  
  Processing id: 25576 	7/12  
  Processing id: 25576 	8/12  
  Processing id: 25576 	9/12  
  Processing id: 25577 	10/12  
  Processing id: 25577 	11/12  
  Processing id: 25578 	12/12  
                                                                               
  Processing id: 24344 	1/12  
  Processing id: 24351 	2/12  
  Processing id: 24378 	3/12  
  Processing id: 24358 	4/12  
  Processing id: 25149 	5/12  
  Processing id: 25150 	6/12  
  Processing id: 25577 	7/12  
  Processing id: 25578 	8/12  
  Processing id: 25571 	9/12  
  Processing id: 25578 	10/12  
  Processing id: 25571 	11/12  
  Processing id: 25571 	12/12  
                                                                               
  Found 12 interactions
  Processing id: 100 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 36 	1/1  
                                                                               
  Processing id: 38 	1/1  
                                                                               
  Linking to GEOS 3.11.0, GDAL 3.5.0, PROJ 9.0.1; sf_use_s2() is TRUE
  The USAboundariesData package needs to be installed.
   Please try installing the package using the following command: 
       install.packages("USAboundariesData", repos = "https://ropensci.r-universe.dev", type = "source")
  Data retrieval 100%   
                                                                               
  Found 3 networks
  Processing id: 86 	1/1  
  Data retrieval 6.67%   
  Data retrieval 13.3%   
  Data retrieval 20%   
  Data retrieval 26.7%   
  Data retrieval 33.3%   
  Data retrieval 40%   
  Data retrieval 46.7%   
  Data retrieval 53.3%   
  Data retrieval 60%   
  Data retrieval 66.7%   
  Data retrieval 73.3%   
  Data retrieval 80%   
  Data retrieval 86.7%   
  Data retrieval 93.3%   
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Found 1 reference(s)
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 1517 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 50%   
  Data retrieval 100%   
                                                                               
  Processing id: 133 	1/1  
                                                                               
  Processing id: 132 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Found 1 reference(s)
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 935 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Processing id: 62 	1/1  
                                                                               
  Processing id: 61 	1/1  
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  Data retrieval 100%   
                                                                               
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 73 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-get_citation.R:2:3): expected behavior ──────────────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get_citation.R:2:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-search_datasets.R:5:3): search_datasets() query and collection work ──
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-search_datasets.R:5:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-search_networks.R:6:3): search_networks() default and collection work ──
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET https://mangal.io/api/v2/network/86
  vcr is currently using the following cassette:
    - ../fixtures/search_networks_def.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-search_networks.R:6:2
    2. │ └─cassette$call_block(...)
    3. ├─rmangal::get_collection(res1) at test-search_networks.R:8:4
    4. └─rmangal:::get_collection.mgSearchNetworks(res1)
    5.   └─rmangal:::get_collection.default(x$id, ...)
    6.     └─rmangal::get_network_by_id(x, force_collection = TRUE, ...)
    7.       ├─base::structure(...)
    8.       └─base::lapply(ids, get_network_by_id_indiv, as_sf = as_sf, verbose = verbose)
    9.         └─rmangal (local) FUN(X[[i]], ...)
   10.           ├─base::structure(...)
   11.           ├─rmangal:::resp_to_spatial(...)
   12.           └─rmangal:::get_singletons(endpoints()$network, ids = id, verbose = verbose)
   13.             ├─httr (local) mem_get(...)
   14.             │ ├─base::withVisible(eval(mc, parent.frame()))
   15.             │ └─base::eval(mc, parent.frame())
   16.             │   └─base::eval(mc, parent.frame())
   17.             └─httr (local) `<fn>`(...)
   18.               └─httr:::request_perform(req, hu$handle$handle)
   19.                 └─httr:::perform_callback("request", req = req)
   20.                   └─webmockr (local) callback(...)
   21.                     └─webmockr::HttrAdapter$new()$handle_request(req)
   22.                       └─private$request_handler(req)$handle()
   23.                         └─eval(parse(text = req_type_fun))(self$request)
   24.                           └─err$run()
   25.                             └─self$construct_message()
  ── Error (test-search_nodes.R:12:3): search_nodes() find 926 and get collection ──
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET https://mangal.io/api/v2/network/926
  vcr is currently using the following cassette:
    - ../fixtures/search_nodes_id926.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-search_nodes.R:12:2
    2. │ └─cassette$call_block(...)
    3. ├─rmangal::get_collection(res, verbose = FALSE) at test-search_nodes.R:14:4
    4. └─rmangal:::get_collection.mgSearchNodes(res, verbose = FALSE)
    5.   └─rmangal:::get_collection.default(net_ids, ...)
    6.     └─rmangal::get_network_by_id(x, force_collection = TRUE, ...)
    7.       ├─base::structure(...)
    8.       └─base::lapply(ids, get_network_by_id_indiv, as_sf = as_sf, verbose = verbose)
    9.         └─rmangal (local) FUN(X[[i]], ...)
   10.           ├─base::structure(...)
   11.           ├─rmangal:::resp_to_spatial(...)
   12.           └─rmangal:::get_singletons(endpoints()$network, ids = id, verbose = verbose)
   13.             ├─httr (local) mem_get(...)
   14.             │ ├─base::withVisible(eval(mc, parent.frame()))
   15.             │ └─base::eval(mc, parent.frame())
   16.             │   └─base::eval(mc, parent.frame())
   17.             └─httr (local) `<fn>`(...)
   18.               └─httr:::request_perform(req, hu$handle$handle)
   19.                 └─httr:::perform_callback("request", req = req)
   20.                   └─webmockr (local) callback(...)
   21.                     └─webmockr::HttrAdapter$new()$handle_request(req)
   22.                       └─private$request_handler(req)$handle()
   23.                         └─eval(parse(text = req_type_fun))(self$request)
   24.                           └─err$run()
   25.                             └─self$construct_message()
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 73 ]
  Error: Test failures
  Execution halted