Running 'testthat.R' [143s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(dhlabR)
  > 
  > test_check("dhlabR")
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_collocations.R:3:3'): get_collocations returns a data frame ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10013 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_document_corpus(doctype = "digibok") at test-get_collocations.R:3:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_concordance.R:3:3'): get_concordance returns a valid dataframe ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10002 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_document_corpus(doctype = "digibok") at test-get_concordance.R:3:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_dispersion.R:14:3'): get_dispersion returns expected result for known input ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10007 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_dispersion(urn, words, window, pr) at test-get_dispersion.R:14:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_document_corpus.R:3:3'): get_document_corpus returns expected results ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10001 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_document_corpus() at test-get_document_corpus.R:3:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_document_frequencies.R:3:3'): get_document_frequencies returns a valid dataframe ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10003 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_document_corpus(doctype = "digibok") at test-get_document_frequencies.R:3:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_metadata.R:7:3'): get_metadata returns a dataframe with expected columns ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10009 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_metadata(dhlabids = test_dhlabids) at test-get_metadata.R:7:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_ngram_from_book.R:2:3'): function returns a data frame ─────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10012 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_ngram_from_books() at test-get_ngram_from_book.R:2:3
   2.   └─httr::POST(ngram_book, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_ngram_from_book.R:7:3'): function returns a data frame with the correct columns ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10005 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_ngram_from_books() at test-get_ngram_from_book.R:7:3
   2.   └─httr::POST(ngram_book, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_ngram_from_newspapers.R:2:3'): function returns a data frame ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10010 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_ngram_from_newspapers() at test-get_ngram_from_newspapers.R:2:3
   2.   └─httr::POST(ngram_newspapers, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_ngram_from_newspapers.R:7:3'): function returns a data frame with the correct columns ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10001 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_ngram_from_newspapers() at test-get_ngram_from_newspapers.R:7:3
   2.   └─httr::POST(ngram_newspapers, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_reference_words.R:9:3'): get_reference_words returns a valid list ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10010 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_reference_words(doctype, from_year, to_year, words) at test-get_reference_words.R:9:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_urn_frequencies.R:7:3'): get_urn_frequencies works with a list of dhlabids ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10014 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_urn_frequencies(dhlabids = urn_list) at test-get_urn_frequencies.R:7:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-get_urn_frequencies.R:19:3'): get_urn_frequencies works with a data frame of URNs ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10004 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::get_document_corpus(doctype = "digibok") at test-get_urn_frequencies.R:19:3
   2.   └─httr::POST(url, body = params, encode = "json")
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-ngram.R:2:3'): ngram function returns a data frame ─────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.nb.no] Failed to connect to api.nb.no port 443 after 10007 ms: Timeout was reached
  Backtrace:
      ▆
   1. └─dhlabR::ngram(word = "havet", corpus = "bok") at test-ngram.R:2:3
   2.   └─dhlabR:::get_ngram(word = word, corpus = corpus, language = language)
   3.     └─httr::GET(NGRAM_API, query = params)
   4.       └─httr:::request_perform(req, hu$handle$handle)
   5.         ├─httr:::request_fetch(req$output, req$url, handle)
   6.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted