Running ‘testthat.R’ [2s/32s]
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)  ──────
  embedded nul in string: '"C\xf3digo";"Nome";"Simbolo";"C\xf3digo Pa\xeds";"Pa\xeds";"Tipo";"Data Exclus\xe3o PTAX"\n005;AFEGANE AFEGANIST;AFN    ;132;AFEGANISTAO                                       ;A;\n785;RANDE/AFRICA SUL ;ZAR    ;7560;AFRICA DO SUL                                     ;A;\n490;LEK ALBANIA REP;ALL    ;175;ALBANIA, REPUBLICA DA                             ;A;\n610;MARCO ALEMAO     ;DEM    ;230;ALEMANHA                                          ;A;02/01/2002\n978;EURO;EUR    ;230;ALEMANHA                                          ;B;\n690;PESETA/ANDORA    ;ADP    ;370;ANDORRA                                           ;A;27/02/2004\n635;KWANZA/ANGOLA    ;AOA    ;400;ANGOLA                                            ;A;\n215;DOLAR CARIBE ORIENTAL;XCD    ;418;ANGUILLA                                          ;A;\n215;DOLAR CARIBE ORIENTAL;XCD    ;434;ANTIGUA E BARBUDA                                 ;A;\n820;RIAL/ARAB SAUDITA;SAR    ;531;ARABIA SAUDITA                    
  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: http_gettext(res)
  7: rawToChar(x)
  
  ── 2. Error: it should get a time series of a currency from bcb (@test-currencie
  embedded nul in string: '"C\xf3digo";"Nome";"Simbolo";"C\xf3digo Pa\xeds";"Pa\xeds";"Tipo";"Data Exclus\xe3o PTAX"\n005;AFEGANE AFEGANIST;AFN    ;132;AFEGANISTAO                                       ;A;\n785;RANDE/AFRICA SUL ;ZAR    ;7560;AFRICA DO SUL                                     ;A;\n490;LEK ALBANIA REP;ALL    ;175;ALBANIA, REPUBLICA DA                             ;A;\n610;MARCO ALEMAO     ;DEM    ;230;ALEMANHA                                          ;A;02/01/2002\n978;EURO;EUR    ;230;ALEMANHA                                          ;B;\n690;PESETA/ANDORA    ;ADP    ;370;ANDORRA                                           ;A;27/02/2004\n635;KWANZA/ANGOLA    ;AOA    ;400;ANGOLA                                            ;A;\n215;DOLAR CARIBE ORIENTAL;XCD    ;418;ANGUILLA                                          ;A;\n215;DOLAR CARIBE ORIENTAL;XCD    ;434;ANTIGUA E BARBUDA                                 ;A;\n820;RIAL/ARAB SAUDITA;SAR    ;531;ARABIA SAUDITA                    
  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: http_gettext(res)
  7: rawToChar(x)
  
  ── 3. Error: it should get currency code (@test-currencies.R#20)  ──────────────
  embedded nul in string: '"C\xf3digo";"Nome";"Simbolo";"C\xf3digo Pa\xeds";"Pa\xeds";"Tipo";"Data Exclus\xe3o PTAX"\n005;AFEGANE AFEGANIST;AFN    ;132;AFEGANISTAO                                       ;A;\n785;RANDE/AFRICA SUL ;ZAR    ;7560;AFRICA DO SUL                                     ;A;\n490;LEK ALBANIA REP;ALL    ;175;ALBANIA, REPUBLICA DA                             ;A;\n610;MARCO ALEMAO     ;DEM    ;230;ALEMANHA                                          ;A;02/01/2002\n978;EURO;EUR    ;230;ALEMANHA                                          ;B;\n690;PESETA/ANDORA    ;ADP    ;370;ANDORRA                                           ;A;27/02/2004\n635;KWANZA/ANGOLA    ;AOA    ;400;ANGOLA                                            ;A;\n215;DOLAR CARIBE ORIENTAL;XCD    ;418;ANGUILLA                                          ;A;\n215;DOLAR CARIBE ORIENTAL;XCD    ;434;ANTIGUA E BARBUDA                                 ;A;\n820;RIAL/ARAB SAUDITA;SAR    ;531;ARABIA SAUDITA                    
  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: http_gettext(res)
  6: rawToChar(x)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 47 SKIPPED: 0 FAILED: 3
  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) 
  
  Error: testthat unit tests failed
  Execution halted