Running ‘testthat.R’ [2s/22s]
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) ----------
  incomplete final line found by readTableHeader on 'text'
  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(get_currency_list())
  4: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  5: get_currency_list()
  6: utils::read.table(text = x, sep = ";", header = TRUE, colClasses = "character")
  
  2. Error: it should get a time series of a currency from bcb (@test-currencies.R#11) 
  incomplete final line found by readTableHeader on 'text'
  1: get_currency("USD", "2017-03-01", "2017-03-14") at testthat/test-currencies.R:11
  2: get_currency_id(symbol)
  3: suppressMessages(get_currency_list())
  4: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  5: get_currency_list()
  6: utils::read.table(text = x, sep = ";", header = TRUE, colClasses = "character")
  
  3. Error: it should get currency code (@test-currencies.R#20) ------------------
  incomplete final line found by readTableHeader on 'text'
  1: get_currency_id("BRL") at testthat/test-currencies.R:20
  2: suppressMessages(get_currency_list())
  3: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  4: get_currency_list()
  5: utils::read.table(text = x, sep = ";", header = TRUE, colClasses = "character")
  
  4. Failure: it should get series within a date period specifying only start_date (@test-get_series.R#42) 
  nrow(x) >= 6 isn't true.
  
  
  testthat results ================================================================
  OK: 25 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. Failure: it should get series within a date period specifying only start_date (@test-get_series.R#42) 
  
  Error: testthat unit tests failed
  Execution halted