Running ‘testthat.R’ [4s/41s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ubci)
  > 
  > test_check("ubci")
  ── 1. Error: code check (@test-ubci_get.R#10)  ─────────────────────────────────
  Timeout was reached: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
  1: ubci_get_options() at testthat/test-ubci_get.R:10
  2: httr::GET(tar) %>% httr::content()
  3: eval(lhs, parent, parent)
  4: eval(lhs, parent, parent)
  5: httr::GET(tar)
  6: request_perform(req, hu$handle$handle)
  7: request_fetch(req$output, req$url, handle)
  8: request_fetch.write_memory(req$output, req$url, handle)
  9: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: index check 1 (@test-ubci_index.R#10)  ────────────────────────────
  Please install xml2 package
  1: ubci_index_options() at testthat/test-ubci_index.R:10
  2: tar %>% httr::GET() %>% httr::content()
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: httr::content(.)
  11: parse_auto(raw, type, encoding, ...)
  12: parser(x = content, type = type, encoding = encoding, ...)
  13: need_package("xml2")
  14: stop("Please install ", pkg, " package", call. = FALSE)
  
  ── 3. Error: index check 3 (@test-ubci_index.R#24)  ────────────────────────────
  Please install xml2 package
  1: ubci_index_options() at testthat/test-ubci_index.R:24
  2: tar %>% httr::GET() %>% httr::content()
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: httr::content(.)
  11: parse_auto(raw, type, encoding, ...)
  12: parser(x = content, type = type, encoding = encoding, ...)
  13: need_package("xml2")
  14: stop("Please install ", pkg, " package", call. = FALSE)
  
  ── 4. Error: index chk (@test-ubci_index_options.R#4)  ─────────────────────────
  Please install xml2 package
  1: ubci_index_options() at testthat/test-ubci_index_options.R:4
  2: tar %>% httr::GET() %>% httr::content()
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: httr::content(.)
  11: parse_auto(raw, type, encoding, ...)
  12: parser(x = content, type = type, encoding = encoding, ...)
  13: need_package("xml2")
  14: stop("Please install ", pkg, " package", call. = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 12 SKIPPED: 0 FAILED: 4
  1. Error: code check (@test-ubci_get.R#10) 
  2. Error: index check 1 (@test-ubci_index.R#10) 
  3. Error: index check 3 (@test-ubci_index.R#24) 
  4. Error: index chk (@test-ubci_index_options.R#4) 
  
  Error: testthat unit tests failed
  Execution halted