Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BMRSr)
  > 
  > test_check("BMRSr")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 42 ]
  
  == Failed tests ================================================================
  -- Error ('test_return.R:5'): Returns list -------------------------------------
  Error in `value[[3L]](cond)`: Could not send the request. The resource may be temporarily unavailable or may have moved.
  Error in curl::curl_fetch_memory(url, handle = handle): Failed to connect to api.bmreports.com port 443 after 1047 ms: Connection refused
  
  Backtrace:
      x
   1. +-testthat::expect_true(...) at test_return.R:5:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-BMRSr::full_request(...)
   5.   \-BMRSr::send_request(request, get_params)
   6.     \-base::tryCatch(...)
   7.       \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   8.         \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.           \-value[[3L]](cond)
  -- Error ('test_return.R:12'): Returns xml instead of csv because api key incorrect --
  Error in `value[[3L]](cond)`: Could not send the request. The resource may be temporarily unavailable or may have moved.
  Error in curl::curl_fetch_memory(url, handle = handle): Failed to connect to api.bmreports.com port 443 after 1044 ms: Connection refused
  
  Backtrace:
       x
    1. +-testthat::expect_warning(...) at test_return.R:12:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat (local) .capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-BMRSr::full_request(...)
    7.   \-BMRSr::send_request(request, get_params)
    8.     \-base::tryCatch(...)
    9.       \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.           \-value[[3L]](cond)
  -- Error ('test_return.R:18'): Returns response() ------------------------------
  Error in `value[[3L]](cond)`: Could not send the request. The resource may be temporarily unavailable or may have moved.
  Error in curl::curl_fetch_memory(url, handle = handle): Failed to connect to api.bmreports.com port 443 after 1063 ms: Connection refused
  
  Backtrace:
       x
    1. +-testthat::expect_true(...) at test_return.R:18:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-methods::is(...)
    5. \-BMRSr::full_request(...)
    6.   \-BMRSr::send_request(request, get_params)
    7.     \-base::tryCatch(...)
    8.       \-base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.         \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.           \-value[[3L]](cond)
  -- Error ('test_util.R:12'): Non-succesful response codes ----------------------
  Error in `value[[3L]](cond)`: Could not send the request. The resource may be temporarily unavailable or may have moved.
  Error in curl::curl_fetch_memory(url, handle = handle): Failed to connect to api.bmreports.com port 443 after 1048 ms: Connection refused
  
  Backtrace:
       x
    1. +-testthat::expect_warning(...) at test_util.R:12:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat (local) .capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. +-BMRSr::parse_response(...)
    7. | \-httr::http_error(response)
    8. \-BMRSr::send_request(...)
    9.   \-base::tryCatch(...)
   10.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.         \-value[[3L]](cond)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 42 ]
  Error: Test failures
  Execution halted