Running 'testthat.R' [46s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  -- 1. Error: it should get currency data from BCB (@test-currencies.R#5)  ------
  BCB API Request error, status code = 500
  1: get_currency("USD", "2017-03-01", "2017-03-02", as = "text") at testthat/test-currencies.R:5
  2: get_currency_id(symbol)
  3: suppressMessages(currency_id_list())
  4: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  5: currency_id_list()
  6: stop("BCB API Request error, status code = ", res$status_code)
  
  -- 2. Error: it should get a time series of a currency from bcb (@test-currencie
  BCB API Request error, status code = 500
  1: get_currency("USD", "2017-03-01", "2017-03-14") at testthat/test-currencies.R:11
  2: get_currency_id(symbol)
  3: suppressMessages(currency_id_list())
  4: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  5: currency_id_list()
  6: stop("BCB API Request error, status code = ", res$status_code)
  
  -- 3. Error: it should get currency code (@test-currencies.R#20)  --------------
  BCB API Request error, status code = 500
  1: get_currency_id("BRL") at testthat/test-currencies.R:20
  2: suppressMessages(currency_id_list())
  3: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  4: currency_id_list()
  5: stop("BCB API Request error, status code = ", res$status_code)
  
  -- 4. Error: it should get MXN and ARS data (@test-currencies.R#25)  -----------
  BCB API Request error, status code = 500
  1: get_currency("MXN", "2018-05-28", "2018-05-30") at testthat/test-currencies.R:25
  2: get_currency_id(symbol)
  3: suppressMessages(currency_id_list())
  4: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  5: currency_id_list()
  6: stop("BCB API Request error, status code = ", res$status_code)
  
  == testthat results  ===========================================================
  OK: 68 SKIPPED: 0 FAILED: 4
  1. Error: it should get currency data from BCB (@test-currencies.R#5) 
  2. Error: it should get a time series of a currency from bcb (@test-currencies.R#11) 
  3. Error: it should get currency code (@test-currencies.R#20) 
  4. Error: it should get MXN and ARS data (@test-currencies.R#25) 
  
  Error: testthat unit tests failed
  Execution halted