Running ‘testthat.R’ [2s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ipify)
  > 
  > test_check("ipify")
  ── 1. Error: get_ip_response returns correct messages for incorrect formats pass
  server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
    1. testthat::expect_message(...)
    6. ipify:::get_ip_response(format = "jsond")
    7. httr::GET(url = url, httr::add_headers(`user-agent` = ipify.env$USER_AGENT))
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: get_ip_response returns no output (@test-ipify.R#12)  ─────────────
  server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
    1. testthat::expect_silent(ipify:::get_ip_response())
    9. ipify:::get_ip_response()
   10. httr::GET(url = url, httr::add_headers(`user-agent` = ipify.env$USER_AGENT))
   11. httr:::request_perform(req, hu$handle$handle)
   13. httr:::request_fetch.write_memory(req$output, req$url, handle)
   14. curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: get_ip returns correct messages for incorrect formats passed as its
  object 'resp' not found
  Backtrace:
   1. testthat::expect_message(ipify::get_ip(format = "jsond"), "jsond is not a recognized return format, defaulting to text")
   6. ipify::get_ip(format = "jsond")
  
  ── 4. Error: get_ip returns message output in certain cases (@test-ipify.R#26)  
  object 'resp' not found
  Backtrace:
   1. testthat::expect_message(ipify:::get_ip(), "No encoding supplied: defaulting to UTF-8.")
   6. ipify:::get_ip()
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: get_ip_response returns correct messages for incorrect formats passed as its paramaters (@test-ipify.R#5) 
  2. Error: get_ip_response returns no output (@test-ipify.R#12) 
  3. Error: get_ip returns correct messages for incorrect formats passed as its paramaters (@test-ipify.R#19) 
  4. Error: get_ip returns message output in certain cases (@test-ipify.R#26) 
  
  Error: testthat unit tests failed
  Execution halted