Running ‘testthat.R’ [4s/212s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  [ FAIL 16 | WARN 0 | SKIP 0 | PASS 24 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-currencies.R:5:3): it should get currency data from BCB ─────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www4.bcb.gov.br] Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
  Backtrace:
       █
    1. └─rbcb::get_currency("USD", "2017-03-01", "2017-03-02", as = "text") test-currencies.R:5:2
    2.   └─rbcb:::get_currency_id(symbol)
    3.     ├─base::suppressMessages(get_currency_list())
    4.     │ └─base::withCallingHandlers(...)
    5.     └─rbcb:::get_currency_list()
    6.       └─rbcb:::get_valid_currency_list()
    7.         └─rbcb:::http_getter(url2)
    8.           └─httr::GET(...)
    9.             └─httr:::request_perform(req, hu$handle$handle)
   10.               ├─httr:::request_fetch(req$output, req$url, handle)
   11.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-currencies.R:11:3): it should get a time series of a currency from bcb ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www4.bcb.gov.br] Recv failure: Connection reset by peer
  Backtrace:
       █
    1. └─rbcb::get_currency("USD", "2017-03-01", "2017-03-14") test-currencies.R:11:2
    2.   └─rbcb:::get_currency_id(symbol)
    3.     ├─base::suppressMessages(get_currency_list())
    4.     │ └─base::withCallingHandlers(...)
    5.     └─rbcb:::get_currency_list()
    6.       └─rbcb:::get_valid_currency_list()
    7.         └─rbcb:::http_getter(url2)
    8.           └─httr::GET(...)
    9.             └─httr:::request_perform(req, hu$handle$handle)
   10.               ├─httr:::request_fetch(req$output, req$url, handle)
   11.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-focus-monthly.R:23:3): it should fetch data from monthly market expectations API without end_date ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: OpenSSL SSL_read: Connection reset by peer, errno 104
  Backtrace:
      █
   1. └─rbcb::get_monthly_market_expectations(indic, start_date = start_date) test-focus-monthly.R:23:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
   4.       └─rbcb:::http_getter(url)
   5.         └─httr::GET(...)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:4:3): it should get series json ────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(...) test-get_series.R:4:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:11:3): it should get one series as data.frame ──────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(1, last = 10) test-get_series.R:11:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:22:3): it should name the series ───────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.bcb.gov.br] Connection timed out after 10000 milliseconds
  Backtrace:
       █
    1. └─rbcb::get_series(c(USD = 1), last = 10) test-get_series.R:22:2
    2.   └─base::lapply(...)
    3.     └─rbcb:::FUN(X[[i]], ...)
    4.       └─rbcb:::.get_series(series_url(x, start_date, end_date, last))
    5.         └─rbcb:::http_getter(url)
    6.           └─httr::GET(...)
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:27:3): it should get series as xts ─────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(c(USD = 1), last = 10, as = "xts") test-get_series.R:27:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:32:3): it should get series as ts ──────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(c(IPCA = 433), start_date = "2017-01-01", as = "ts") test-get_series.R:32:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:44:3): it should get series within a date period ───
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(c(USD = 1), start_date = "2017-03-01", end_date = "2017-03-29") test-get_series.R:44:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:52:3): it should get series within a date period specifying only start_date ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(c(USD = 1), start_date = start) test-get_series.R:52:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:59:3): it should get series within a date period specifying only end_date ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(c(USD = 1), end_date = end) test-get_series.R:59:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_series.R:66:3): it should get multiple series ───────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─rbcb::get_series(c(USD = 1, SELIC = 1178), start_date = start) test-get_series.R:66:2
   2.   └─rbcb:::series_obj(code)
   3.     └─base::lapply(ser, series_info)
   4.       └─rbcb:::FUN(X[[i]], ...)
   5.         └─httr::GET(url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-series_obj.R:6:3): it should create series objects ──────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─rbcb:::series_obj(code) test-series_obj.R:6:2
   2.   └─base::lapply(ser, series_info)
   3.     └─rbcb:::FUN(X[[i]], ...)
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-series_obj.R:23:3): it should create series url ─────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─rbcb:::series_obj(code) test-series_obj.R:23:2
   2.   └─base::lapply(ser, series_info)
   3.     └─rbcb:::FUN(X[[i]], ...)
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-series_obj.R:29:3): it should create series info ────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─rbcb:::series_obj(code) test-series_obj.R:29:2
   2.   └─base::lapply(ser, series_info)
   3.     └─rbcb:::FUN(X[[i]], ...)
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-url.R:4:1): (code run outside of `test_that()`) ─────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [www3.bcb.gov.br] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─rbcb:::series_obj(c(USDBRL = 1)) test-url.R:4:0
   2.   └─base::lapply(ser, series_info)
   3.     └─rbcb:::FUN(X[[i]], ...)
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 16 | WARN 0 | SKIP 0 | PASS 24 ]
  Error: Test failures
  Execution halted