Running 'testthat.R' [111s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  -- 1. Error: it should get series within a date period specifying only end_date 
  Timeout was reached: Connection timed out after 10562 milliseconds
  1: get_series(c(USD = 1), end_date = end) at testthat/test-get_series.R:59
  2: lapply(objs, function(x) .get_series(series_url(x, start_date, end_date, last)))
  3: FUN(X[[i]], ...)
  4: .get_series(series_url(x, start_date, end_date, last))
  5: http_getter(url)
  6: httr::GET(url = url, config = list(), if (verbose) httr::verbose(), httr::add_headers(`User-Agent` = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36"))
  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: it should get multiple series (@test-get_series.R#70)  ------------
  Timeout was reached: Connection timed out after 10639 milliseconds
  1: get_series(c(USD = 1, 7), last = 5) at testthat/test-get_series.R:70
  2: lapply(objs, function(x) .get_series(series_url(x, start_date, end_date, last)))
  3: FUN(X[[i]], ...)
  4: .get_series(series_url(x, start_date, end_date, last))
  5: http_getter(url)
  6: httr::GET(url = url, config = list(), if (verbose) httr::verbose(), httr::add_headers(`User-Agent` = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36"))
  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: 74 SKIPPED: 0 FAILED: 2
  1. Error: it should get series within a date period specifying only end_date (@test-get_series.R#59) 
  2. Error: it should get multiple series (@test-get_series.R#70) 
  
  Error: testthat unit tests failed
  Execution halted