Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [10s/169s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(uklr)
  > 
  > test_check("uklr")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-build-sparql.R:32:3): ons ─────────────────────────────────────
  `ons_lookup()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_lookup(), NA) test-build-sparql.R:32:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    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)
  ── Failure (test-build-sparql.R:33:3): ons ─────────────────────────────────────
  `ons_countries()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_countries(), NA) test-build-sparql.R:33:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_countries()
    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)
  ── Failure (test-build-sparql.R:34:3): ons ─────────────────────────────────────
  `ons_regions()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_regions(), NA) test-build-sparql.R:34:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_regions()
    7.   └─uklr::ons_countries(modify)
    8.     └─jsonlite::parse_json(x, simplifyVector = TRUE)
    9.       └─jsonlite:::parse_and_simplify(...)
   10.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Failure (test-build-sparql.R:35:3): ons ─────────────────────────────────────
  `ons_eng_counties()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_eng_counties(), NA) test-build-sparql.R:35:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_eng_counties()
    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)
  ── Failure (test-build-sparql.R:36:3): ons ─────────────────────────────────────
  `ons_la()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_la(), NA) test-build-sparql.R:36:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_la()
    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)
  ── Failure (test-build-sparql.R:38:3): ons ─────────────────────────────────────
  `ons_nuts1()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_nuts1(), NA) test-build-sparql.R:38:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_nuts1()
    7.   ├─base::unique(ons_lookup()$NUTS118NM)
    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)
  ── Failure (test-build-sparql.R:39:3): ons ─────────────────────────────────────
  `ons_nuts2()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_nuts2(), NA) test-build-sparql.R:39:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_nuts2()
    7.   ├─base::unique(ons_lookup()$NUTS218NM)
    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)
  ── Failure (test-build-sparql.R:40:3): ons ─────────────────────────────────────
  `ons_nuts3()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_nuts3(), NA) test-build-sparql.R:40:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_nuts3()
    7.   ├─base::unique(ons_lookup()$NUTS318NM)
    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)
  ── Failure (test-build-sparql.R:41:3): ons ─────────────────────────────────────
  `ons_lad()` threw an error.
  Message: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(ons_lad(), NA) test-build-sparql.R:41:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─uklr::ons_lad()
    7.   ├─base::unique(ons_lookup()$LAU118NM)
    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)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 23 ]
  Error: Test failures
  Execution halted