Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("banR")
  > test_check("banR")
  -- 1. Error: Geocode tbl works  (@test_geocodetbl.R#12)  -----------------------
  The API sent back an error 502
  1: expect_is(object = banR::geocode_tbl(tbl = table_test, adresse = x), class = "tbl_df") at testthat/test_geocodetbl.R:12
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: banR::geocode_tbl(tbl = table_test, adresse = x)
  5: stop("The API sent back an error ", httr::status_code(query_results))
  
  -- 2. Error: Input and output DFs have a similar number of rows (@test_geocodetb
  The API sent back an error 502
  1: banR::geocode_tbl(tbl = table_test, adresse = adresses, code_insee = code_insee) at testthat/test_geocodetbl.R:31
  2: stop("The API sent back an error ", httr::status_code(query_results))
  
  -- 3. Error: Geocode_tbl works with a single-column input data.frame (@test_geoc
  The API sent back an error 502
  1: expect_is(banR::geocode_tbl(tbl = table_test, adresse = city), "tbl_df") at testthat/test_geocodetbl.R:48
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: banR::geocode_tbl(tbl = table_test, adresse = city)
  5: stop("The API sent back an error ", httr::status_code(query_results))
  
  -- 4. Error: Reverse geocode tbl works  (@test_geocodetbl.R#60)  ---------------
  The API sent back an error 502
  1: expect_is(object = reverse_geocode_tbl(tbl = table_reverse, longitude = x, latitude = y), 
         class = "tbl_df") at testthat/test_geocodetbl.R:60
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: reverse_geocode_tbl(tbl = table_reverse, longitude = x, latitude = y)
  5: stop("The API sent back an error ", httr::status_code(query_results))
  
  == testthat results  ===========================================================
  OK: 2 SKIPPED: 0 FAILED: 4
  1. Error: Geocode tbl works  (@test_geocodetbl.R#12) 
  2. Error: Input and output DFs have a similar number of rows (@test_geocodetbl.R#31) 
  3. Error: Geocode_tbl works with a single-column input data.frame (@test_geocodetbl.R#48) 
  4. Error: Reverse geocode tbl works  (@test_geocodetbl.R#60) 
  
  Error: testthat unit tests failed
  Execution halted