Running 'testthat.R' [319s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(WikipediR)
  > library(testthat)
  > test_check("WikipediR")
  -- 1. Error: Wikitext content can be retrieved through page_content (@test_conte
  transfer closed with outstanding read data remaining
  1: expect_true({
         page_content("en", "wikipedia", page_name = "Barack Obama", as_wikitext = TRUE)
         TRUE
     }) at testthat/test_content_retrieval.R:4
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: page_content("en", "wikipedia", page_name = "Barack Obama", as_wikitext = TRUE) at testthat/test_content_retrieval.R:4
  5: query(url, "pcontent", clean_response, query_param = query_param, ...)
  6: httr::GET(url, query = query_param, httr::user_agent("WikipediR - https://github.com/Ironholds/WikipediR"), 
         ...)
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  -- 2. Error: HTML content can be retrieved through page_content (@test_content_r
  transfer closed with outstanding read data remaining
  1: expect_true({
         page_content("en", "wikipedia", page_name = "Barack Obama", as_wikitext = FALSE)
         TRUE
     }) at testthat/test_content_retrieval.R:9
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: page_content("en", "wikipedia", page_name = "Barack Obama", as_wikitext = FALSE) at testthat/test_content_retrieval.R:9
  5: query(url, "pcontent", clean_response, query_param = query_param, ...)
  6: httr::GET(url, query = query_param, httr::user_agent("WikipediR - https://github.com/Ironholds/WikipediR"), 
         ...)
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  == testthat results  ===========================================================
  OK: 20 SKIPPED: 0 WARNINGS: 0 FAILED: 2
  1. Error: Wikitext content can be retrieved through page_content (@test_content_retrieval.R#4) 
  2. Error: HTML content can be retrieved through page_content (@test_content_retrieval.R#9) 
  
  Error: testthat unit tests failed
  Execution halted