Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [13s/289s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(uklr)
  > 
  > test_check("uklr")
  ── 1. Failure: ons (@test-build-sparql.R#32)  ──────────────────────────────────
  `ons_lookup()` threw an error.
  Message: parse error: premature EOF
                                         
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_lookup(), NA)
    6. uklr::ons_lookup()
    7. jsonlite::parse_json(x, simplifyVector = TRUE)
    8. jsonlite:::parse_and_simplify(...)
    9. jsonlite:::parseJSON(txt, bigint_as_char)
   10. jsonlite:::parse_string(txt, bigint_as_char)
  
  ── 2. Failure: ons (@test-build-sparql.R#33)  ──────────────────────────────────
  `ons_countries()` threw an error.
  Message: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_countries(), NA)
    6. uklr::ons_countries()
    7. httr::GET("https://opendata.arcgis.com/datasets/7579a399b413418db5a3bdd1c824bffb_0.geojson")
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Failure: ons (@test-build-sparql.R#34)  ──────────────────────────────────
  `ons_regions()` threw an error.
  Message: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_regions(), NA)
    6. uklr::ons_regions()
    7. uklr::ons_countries(modify)
    8. httr::GET("https://opendata.arcgis.com/datasets/7579a399b413418db5a3bdd1c824bffb_0.geojson")
    9. httr:::request_perform(req, hu$handle$handle)
   11. httr:::request_fetch.write_memory(req$output, req$url, handle)
   12. curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Failure: ons (@test-build-sparql.R#35)  ──────────────────────────────────
  `ons_eng_counties()` threw an error.
  Message: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_eng_counties(), NA)
    6. uklr::ons_eng_counties()
    7. httr::GET("https://opendata.arcgis.com/datasets/1e96fd2cc44e4dbc8c6f96f7340562fe_0.geojson")
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ── 5. Failure: ons (@test-build-sparql.R#36)  ──────────────────────────────────
  `ons_la()` threw an error.
  Message: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_la(), NA)
    6. uklr::ons_la()
    7. httr::GET("https://opendata.arcgis.com/datasets/17eb563791b648f9a7025ca408bb09c6_0.geojson")
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ── 6. Failure: ons (@test-build-sparql.R#38)  ──────────────────────────────────
  `ons_nuts1()` threw an error.
  Message: parse error: premature EOF
                                         
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_nuts1(), NA)
    6. uklr::ons_nuts1()
    8. uklr::ons_lookup()
    9. jsonlite::parse_json(x, simplifyVector = TRUE)
   10. jsonlite:::parse_and_simplify(...)
   11. jsonlite:::parseJSON(txt, bigint_as_char)
   12. jsonlite:::parse_string(txt, bigint_as_char)
  
  ── 7. Failure: ons (@test-build-sparql.R#40)  ──────────────────────────────────
  `ons_nuts3()` threw an error.
  Message: parse error: premature EOF
                                         
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_nuts3(), NA)
    6. uklr::ons_nuts3()
    8. uklr::ons_lookup()
    9. jsonlite::parse_json(x, simplifyVector = TRUE)
   10. jsonlite:::parse_and_simplify(...)
   11. jsonlite:::parseJSON(txt, bigint_as_char)
   12. jsonlite:::parse_string(txt, bigint_as_char)
  
  ── 8. Failure: ons (@test-build-sparql.R#41)  ──────────────────────────────────
  `ons_lad()` threw an error.
  Message: parse error: premature EOF
                                         
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(ons_lad(), NA)
    6. uklr::ons_lad()
    8. uklr::ons_lookup()
    9. jsonlite::parse_json(x, simplifyVector = TRUE)
   10. jsonlite:::parse_and_simplify(...)
   11. jsonlite:::parseJSON(txt, bigint_as_char)
   12. jsonlite:::parse_string(txt, bigint_as_char)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 24 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Failure: ons (@test-build-sparql.R#32) 
  2. Failure: ons (@test-build-sparql.R#33) 
  3. Failure: ons (@test-build-sparql.R#34) 
  4. Failure: ons (@test-build-sparql.R#35) 
  5. Failure: ons (@test-build-sparql.R#36) 
  6. Failure: ons (@test-build-sparql.R#38) 
  7. Failure: ons (@test-build-sparql.R#40) 
  8. Failure: ons (@test-build-sparql.R#41) 
  
  Error: testthat unit tests failed
  Execution halted