Running ‘testthat.R’ [1s/91s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(refimpact)
  refimpact: API wrapper for the UK REF 2014 Impact Case Studies Database.
  Run ?refimpact for help, or see the vignette.
  > 
  > test_check("refimpact")
  1. Error: api_method value of ListTagValues gives no error if tag_value is
            provided (@test_input_validation.R#22) 
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_silent(ListTagValues_validate("ListTagValues", 5)) at testthat/test_input_validation.R:22
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: ListTagValues_validate("ListTagValues", 5)
  7: ref_get("ListTagTypes")
  8: httr::GET(api_url, ua)
  9: request_perform(req, hu$handle$handle)
  10: request_fetch(req$output, req$url, handle)
  11: request_fetch.write_memory(req$output, req$url, handle)
  12: curl::curl_fetch_memory(url, handle = handle)
  
  2. Failure: useful error if unseen tag_value is provided to ListTagValues (@test_input_validation.R#31) 
  error$message does not match "*tag_type*".
  Actual value: "Timeout was reached: Connection timed out after 10000 milliseconds"
  
  
  3. Error: list elements with acceptable names and parameters throw no error or
            warning (@test_input_validation.R#65) 
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_silent(SearchCaseStudies_prepare(list(UKPRN = 10007777))) at testthat/test_input_validation.R:65
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: SearchCaseStudies_prepare(list(UKPRN = 10007777))
  7: ref_get("ListInstitutions")
  8: httr::GET(api_url, ua)
  9: request_perform(req, hu$handle$handle)
  10: request_fetch(req$output, req$url, handle)
  11: request_fetch.write_memory(req$output, req$url, handle)
  12: curl::curl_fetch_memory(url, handle = handle)
  
  4. Failure: unseen UKPRNs throw an error (@test_input_validation.R#79) ---------
  error$message does not match "UKPRN".
  Actual value: "Timeout was reached: Connection timed out after 10001 milliseconds"
  
  
  5. Failure: unseen UKPRNs throw an error (@test_input_validation.R#80) ---------
  error$message does not match "UKPRN".
  Actual value: "Timeout was reached: Connection timed out after 10001 milliseconds"
  
  
  6. Failure: unseen UKPRNs throw an error (@test_input_validation.R#81) ---------
  error$message does not match "UKPRN".
  Actual value: "Timeout was reached: Connection timed out after 10001 milliseconds"
  
  
  7. Failure: unseen UOAs throw an error (@test_input_validation.R#85) -----------
  error$message does not match "UoA".
  Actual value: "Timeout was reached: Connection timed out after 10000 milliseconds"
  
  
  8. Failure: unseen UOAs throw an error (@test_input_validation.R#86) -----------
  error$message does not match "UoA".
  Actual value: "Timeout was reached: Connection timed out after 10001 milliseconds"
  
  
  9. Failure: unseen UOAs throw an error (@test_input_validation.R#87) -----------
  error$message does not match "UoA".
  Actual value: "Timeout was reached: Connection timed out after 10001 milliseconds"
  
  
  testthat results ================================================================
  OK: 40 SKIPPED: 7 FAILED: 9
  1. Error: api_method value of ListTagValues gives no error if tag_value is
            provided (@test_input_validation.R#22) 
  2. Failure: useful error if unseen tag_value is provided to ListTagValues (@test_input_validation.R#31) 
  3. Error: list elements with acceptable names and parameters throw no error or
            warning (@test_input_validation.R#65) 
  4. Failure: unseen UKPRNs throw an error (@test_input_validation.R#79) 
  5. Failure: unseen UKPRNs throw an error (@test_input_validation.R#80) 
  6. Failure: unseen UKPRNs throw an error (@test_input_validation.R#81) 
  7. Failure: unseen UOAs throw an error (@test_input_validation.R#85) 
  8. Failure: unseen UOAs throw an error (@test_input_validation.R#86) 
  9. Failure: unseen UOAs throw an error (@test_input_validation.R#87) 
  
  Error: testthat unit tests failed
  Execution halted