Running ‘testthat.R’ [15s/157s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(EPP)
  > 
  > test_check("EPP")
  Data: (c) OpenStreetMap contributors, ODbL 1.0 - http://www.openstreetmap.org/copyright
  Routing: OSRM - http://project-osrm.org/
  sp support will be dropped in the next major release, please use sf objects instead.
  projected points
  The OSRM server returned an error:
  Error in doTryCatch(return(expr), name, parentenv, handler): object 'res' not found
  
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  
  ERROR : subscript out of bounds 
  The OSRM server returned an error:
  Error in doTryCatch(return(expr), name, parentenv, handler): object 'res' not found
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-assign_nn.R:3:9): assign_nn works ───────────────────────────────
  Error in `x[[jj]][iseq] <- vjj`: replacement has length zero
  Backtrace:
      █
   1. └─EPP::assign_nn(pop_epp[1:20, ], centers_epp) test-assign_nn.R:3:8
   2.   ├─base::`[<-`(`*tmp*`, i, "nn_id", value = structure(list(id = integer(0)), row.names = integer(0), class = "data.frame"))
   3.   └─base::`[<-.data.frame`(...)
  ── Error (test-assignation_exist.R:7:9): assignation_exist works ───────────────
  Error in ``$<-.data.frame`(`*tmp*`, "en1000_exist", value = logical(0))`: replacement has 0 rows, data has 60
  Backtrace:
      █
   1. └─EPP::assignation_exist(...) test-assignation_exist.R:7:8
   2.   ├─base::`$<-`(`*tmp*`, "en1000_exist", value = logical(0))
   3.   └─base::`$<-.data.frame`(`*tmp*`, "en1000_exist", value = logical(0))
  ── Failure (test-byosrmRoute.R:5:9): byosrmRoute works ─────────────────────────
  ncol(a) (`actual`) not equal to 6 (`expected`).
  
    `actual`: 4
  `expected`: 6
  ── Error (test-osrm_matrixby100.R:3:9): osrmby100 works ────────────────────────
  Error in ``rownames<-`(`*tmp*`, value = src[, 1])`: attempt to set 'rownames' on an object with no dimensions
  Backtrace:
      █
   1. └─EPP::osrm_matrixby100(...) test-osrm_matrixby100.R:3:8
   2.   └─base::`rownames<-`(`*tmp*`, value = src[, 1])
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 22 ]
  Error: Test failures
  Execution halted