Running ‘testthat.R’ [6s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("RKorAPClient")
  If you intend to use the Highcharts plot options, please note that Highcharts (www.highcharts.com) is a Highsoft software product which is not free for commercial and governmental use.
  > 
  > test_check("RKorAPClient")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-KorAPConnection.R:2:3): KorAPConnection is printable ────────────
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection") test-KorAPConnection.R:2:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-KorAPConnection.R:7:3): Opening KorAPConnection prints some message. ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─testthat::expect_message(new("KorAPConnection"), "KorAP") test-KorAPConnection.R:7:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─methods::new("KorAPConnection")
    7.   ├─methods::initialize(value, ...)
    8.   └─RKorAPClient::initialize(value, ...)
    9.     └─RKorAPClient:::.local(.Object, ...)
   10.       ├─RKorAPClient::apiCall(...)
   11.       └─RKorAPClient::apiCall(...)
   12.         └─RKorAPClient:::.local(kco, ...)
   13.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   14.             └─jsonlite:::parse_and_simplify(...)
   15.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   16.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Failure (test-KorAPConnection.R:11:3): Opening KorAPConnection with invalid apiToken fails ──
  `new("KorAPConnection", accessToken = "test token")` threw an error with unexpected message.
  Expected match: "401"
  Actual message: "lexical error: invalid char in json text.\n                                       Proxy error: Connection refused\n                     (right here) ------^\n"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-KorAPConnection.R:11:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─methods::new("KorAPConnection", accessToken = "test token")
    7.   ├─methods::initialize(value, ...)
    8.   └─RKorAPClient::initialize(value, ...)
    9.     └─RKorAPClient:::.local(.Object, ...)
   10.       ├─RKorAPClient::apiCall(...)
   11.       └─RKorAPClient::apiCall(...)
   12.         └─RKorAPClient:::.local(kco, ...)
   13.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   14.             └─jsonlite:::parse_and_simplify(...)
   15.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   16.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-KorAPConnection.R:16:3): Persisting null apiToken fails ─────────
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection") test-KorAPConnection.R:16:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-KorAPConnection.R:24:3): Opening KorAPConnection with KorAPUrl works ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", KorAPUrl = "https://korap.ids-mannheim.de") test-KorAPConnection.R:24:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-corpusQuery.R:2:3): frequencyQuery can be cached ────────────────
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", cache = TRUE, verbose = TRUE) test-corpusQuery.R:2:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-corpusQuery.R:8:3): Cache depends on indexRevision (handling also NULL values) ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", cache = TRUE, verbose = TRUE) test-corpusQuery.R:8:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-corpusQuery.R:17:3): corpusQuery returns results ────────────────
  Error: error in evaluating the argument 'kco' in selecting a method for function 'corpusQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─new("KorAPConnection") %>% corpusQuery("Ameisenplage") test-corpusQuery.R:17:2
    2. ├─RKorAPClient::corpusQuery(., "Ameisenplage")
    3. ├─methods::new("KorAPConnection")
    4. │ ├─methods::initialize(value, ...)
    5. │ └─RKorAPClient::initialize(value, ...)
    6. │   └─RKorAPClient:::.local(.Object, ...)
    7. │     ├─RKorAPClient::apiCall(...)
    8. │     └─RKorAPClient::apiCall(...)
    9. │       └─RKorAPClient:::.local(kco, ...)
   10. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   11. │           └─jsonlite:::parse_and_simplify(...)
   12. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   13. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusQuery.R:23:3): fetchAll fetches all results ───────────────
  Error: error in evaluating the argument 'kco' in selecting a method for function 'corpusQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-corpusQuery.R:23:2
    2. ├─RKorAPClient::corpusQuery(., "Ameisenplage", vc = "pubDate since 2014")
    3. ├─methods::new("KorAPConnection", verbose = TRUE)
    4. │ ├─methods::initialize(value, ...)
    5. │ └─RKorAPClient::initialize(value, ...)
    6. │   └─RKorAPClient:::.local(.Object, ...)
    7. │     ├─RKorAPClient::apiCall(...)
    8. │     └─RKorAPClient::apiCall(...)
    9. │       └─RKorAPClient:::.local(kco, ...)
   10. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   11. │           └─jsonlite:::parse_and_simplify(...)
   12. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   13. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusQuery.R:31:3): Uncached query for non-matching search string return 0 results ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'corpusQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─new("KorAPConnection", cache = FALSE) %>% corpusQuery("Xmeisenplagx") test-corpusQuery.R:31:2
    2. ├─RKorAPClient::corpusQuery(., "Xmeisenplagx")
    3. ├─methods::new("KorAPConnection", cache = FALSE)
    4. │ ├─methods::initialize(value, ...)
    5. │ └─RKorAPClient::initialize(value, ...)
    6. │   └─RKorAPClient:::.local(.Object, ...)
    7. │     ├─RKorAPClient::apiCall(...)
    8. │     └─RKorAPClient::apiCall(...)
    9. │       └─RKorAPClient:::.local(kco, ...)
   10. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   11. │           └─jsonlite:::parse_and_simplify(...)
   12. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   13. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusQuery.R:36:3): Empty query result is printable ────────────
  Error: error in evaluating the argument 'kqo' in selecting a method for function 'fetchNext': error in evaluating the argument 'kco' in selecting a method for function 'corpusQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-corpusQuery.R:36:2
    2. ├─RKorAPClient::fetchNext(.)
    3. ├─RKorAPClient::corpusQuery(., "Xmeisenplagx", vc = "pubDate in 2012")
    4. ├─methods::new("KorAPConnection", cache = TRUE, verbose = TRUE)
    5. │ ├─methods::initialize(value, ...)
    6. │ └─RKorAPClient::initialize(value, ...)
    7. │   └─RKorAPClient:::.local(.Object, ...)
    8. │     ├─RKorAPClient::apiCall(...)
    9. │     └─RKorAPClient::apiCall(...)
   10. │       └─RKorAPClient:::.local(kco, ...)
   11. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   12. │           └─jsonlite:::parse_and_simplify(...)
   13. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   14. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   15. ├─base::.handleSimpleError(...)
   16. │ └─base:::h(simpleError(msg, call))
   17. └─base::.handleSimpleError(...)
   18.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusQuery.R:43:3): Non-empty query result is printable ────────
  Error: error in evaluating the argument 'kqo' in selecting a method for function 'fetchRest': error in evaluating the argument 'kco' in selecting a method for function 'corpusQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-corpusQuery.R:43:2
    2. ├─RKorAPClient::fetchRest(.)
    3. ├─RKorAPClient::corpusQuery(...)
    4. ├─methods::new("KorAPConnection", cache = TRUE, verbose = TRUE)
    5. │ ├─methods::initialize(value, ...)
    6. │ └─RKorAPClient::initialize(value, ...)
    7. │   └─RKorAPClient:::.local(.Object, ...)
    8. │     ├─RKorAPClient::apiCall(...)
    9. │     └─RKorAPClient::apiCall(...)
   10. │       └─RKorAPClient:::.local(kco, ...)
   11. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   12. │           └─jsonlite:::parse_and_simplify(...)
   13. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   14. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   15. ├─base::.handleSimpleError(...)
   16. │ └─base:::h(simpleError(msg, call))
   17. └─base::.handleSimpleError(...)
   18.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusQuery.R:50:3): Query from KorAP URL returns as many results as corresponding direct query ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection") test-corpusQuery.R:50:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-corpusQuery.R:57:3): Typo in query causes error ─────────────────
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", verbose = TRUE) test-corpusQuery.R:57:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-corpusStats.R:2:3): corpusStats works ───────────────────────────
  Error: error in evaluating the argument 'kco' in selecting a method for function 'corpusStats': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─new("KorAPConnection") %>% corpusStats() test-corpusStats.R:2:2
    2. ├─RKorAPClient::corpusStats(.)
    3. ├─methods::new("KorAPConnection")
    4. │ ├─methods::initialize(value, ...)
    5. │ └─RKorAPClient::initialize(value, ...)
    6. │   └─RKorAPClient:::.local(.Object, ...)
    7. │     ├─RKorAPClient::apiCall(...)
    8. │     └─RKorAPClient::apiCall(...)
    9. │       └─RKorAPClient:::.local(kco, ...)
   10. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   11. │           └─jsonlite:::parse_and_simplify(...)
   12. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   13. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusStats.R:10:3): Printing corpusStats for the whole corpus works ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'corpusStats': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─new("KorAPConnection") %>% corpusStats() test-corpusStats.R:10:2
    2. ├─RKorAPClient::corpusStats(.)
    3. ├─methods::new("KorAPConnection")
    4. │ ├─methods::initialize(value, ...)
    5. │ └─RKorAPClient::initialize(value, ...)
    6. │   └─RKorAPClient:::.local(.Object, ...)
    7. │     ├─RKorAPClient::apiCall(...)
    8. │     └─RKorAPClient::apiCall(...)
    9. │       └─RKorAPClient:::.local(kco, ...)
   10. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   11. │           └─jsonlite:::parse_and_simplify(...)
   12. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   13. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test-corpusStats.R:15:3): Printing corpusStats for a sub-corpus works ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'corpusStats': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─new("KorAPConnection") %>% corpusStats("pubDate in 2018") test-corpusStats.R:15:2
    2. ├─RKorAPClient::corpusStats(., "pubDate in 2018")
    3. ├─methods::new("KorAPConnection")
    4. │ ├─methods::initialize(value, ...)
    5. │ └─RKorAPClient::initialize(value, ...)
    6. │   └─RKorAPClient:::.local(.Object, ...)
    7. │     ├─RKorAPClient::apiCall(...)
    8. │     └─RKorAPClient::apiCall(...)
    9. │       └─RKorAPClient:::.local(kco, ...)
   10. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   11. │           └─jsonlite:::parse_and_simplify(...)
   12. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   13. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test-demos.R:4:3): Alternatives over time highcharter example works ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'frequencyQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-demos.R:4:2
    2. ├─RKorAPClient::hc_freq_by_year_ci(., as.alternatives = TRUE)
    3. │ └─`%>%`(...)
    4. ├─RKorAPClient::frequencyQuery(...)
    5. ├─methods::new("KorAPConnection", verbose = TRUE)
    6. │ ├─methods::initialize(value, ...)
    7. │ └─RKorAPClient::initialize(value, ...)
    8. │   └─RKorAPClient:::.local(.Object, ...)
    9. │     ├─RKorAPClient::apiCall(...)
   10. │     └─RKorAPClient::apiCall(...)
   11. │       └─RKorAPClient:::.local(kco, ...)
   12. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   13. │           └─jsonlite:::parse_and_simplify(...)
   14. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   15. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   16. └─base::.handleSimpleError(...)
   17.   └─base:::h(simpleError(msg, call))
  ── Error (test-demos.R:18:3): Multiple queries over time highcharter example works ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'frequencyQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-demos.R:18:2
    2. ├─RKorAPClient::hc_freq_by_year_ci(., as.alternatives = FALSE)
    3. │ └─`%>%`(...)
    4. ├─RKorAPClient::frequencyQuery(...)
    5. ├─methods::new("KorAPConnection", verbose = TRUE)
    6. │ ├─methods::initialize(value, ...)
    7. │ └─RKorAPClient::initialize(value, ...)
    8. │   └─RKorAPClient:::.local(.Object, ...)
    9. │     ├─RKorAPClient::apiCall(...)
   10. │     └─RKorAPClient::apiCall(...)
   11. │       └─RKorAPClient:::.local(kco, ...)
   12. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   13. │           └─jsonlite:::parse_and_simplify(...)
   14. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   15. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   16. └─base::.handleSimpleError(...)
   17.   └─base:::h(simpleError(msg, call))
  ── Error (test-demos.R:32:3): Single query in multiple over time highcharter example works ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'frequencyQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-demos.R:32:2
    2. ├─RKorAPClient::hc_freq_by_year_ci(., as.alternatives = FALSE)
    3. │ └─`%>%`(...)
    4. ├─RKorAPClient::frequencyQuery(...)
    5. ├─methods::new("KorAPConnection", verbose = TRUE)
    6. │ ├─methods::initialize(value, ...)
    7. │ └─RKorAPClient::initialize(value, ...)
    8. │   └─RKorAPClient:::.local(.Object, ...)
    9. │     ├─RKorAPClient::apiCall(...)
   10. │     └─RKorAPClient::apiCall(...)
   11. │       └─RKorAPClient:::.local(kco, ...)
   12. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   13. │           └─jsonlite:::parse_and_simplify(...)
   14. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   15. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   16. └─base::.handleSimpleError(...)
   17.   └─base:::h(simpleError(msg, call))
  ── Error (test-demos.R:46:3): Single query over time highcharter example works ──
  Error: error in evaluating the argument 'kco' in selecting a method for function 'frequencyQuery': lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. ├─`%>%`(...) test-demos.R:46:2
    2. ├─RKorAPClient::hc_freq_by_year_ci(., as.alternatives = FALSE)
    3. │ └─`%>%`(...)
    4. ├─RKorAPClient::frequencyQuery(...)
    5. ├─methods::new("KorAPConnection", verbose = TRUE)
    6. │ ├─methods::initialize(value, ...)
    7. │ └─RKorAPClient::initialize(value, ...)
    8. │   └─RKorAPClient:::.local(.Object, ...)
    9. │     ├─RKorAPClient::apiCall(...)
   10. │     └─RKorAPClient::apiCall(...)
   11. │       └─RKorAPClient:::.local(kco, ...)
   12. │         └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
   13. │           └─jsonlite:::parse_and_simplify(...)
   14. │             └─jsonlite:::parseJSON(txt, bigint_as_char)
   15. │               └─jsonlite:::parse_string(txt, bigint_as_char)
   16. └─base::.handleSimpleError(...)
   17.   └─base:::h(simpleError(msg, call))
  ── Error (test-demos.R:57:3): Auto conditions over time highcharter example works ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", verbose = TRUE) test-demos.R:57:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-demos.R:73:3): Single condition over time highcharter example works ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", verbose = TRUE) test-demos.R:73:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-demos.R:88:3): Multiple conditions over time highcharter example works ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", verbose = TRUE) test-demos.R:88:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-demos.R:104:3): Multiple conditions and queries over time highcharter example works ──
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection", verbose = TRUE) test-demos.R:104:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-demos.R:121:3): Conditions over time ggplotly example works ─────
  Error: lexical error: invalid char in json text.
                                         Proxy error: Connection refused
                       (right here) ------^
  
  Backtrace:
       █
    1. └─methods::new("KorAPConnection") test-demos.R:121:2
    2.   ├─methods::initialize(value, ...)
    3.   └─RKorAPClient::initialize(value, ...)
    4.     └─RKorAPClient:::.local(.Object, ...)
    5.       ├─RKorAPClient::apiCall(...)
    6.       └─RKorAPClient::apiCall(...)
    7.         └─RKorAPClient:::.local(kco, ...)
    8.           └─jsonlite::fromJSON(content(resp, "text", encoding = "UTF-8"))
    9.             └─jsonlite:::parse_and_simplify(...)
   10.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 26 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted