Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  [ FAIL 3 | WARN 0 | SKIP 22 | PASS 0 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (22)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-series_obj.R:6:3): it should create series objects ──────────────
  Error: 'NA' does not exist in current working directory ('C:/r_packages/pkgcheck/CRAN/rbcb/rbcb.Rcheck/tests/testthat').
  Backtrace:
       ▆
    1. └─rbcb:::series_obj(code) at test-series_obj.R:6:2
    2.   └─base::lapply(ser, series_info)
    3.     └─rbcb FUN(X[[i]], ...)
    4.       ├─xml2::read_html(cnt)
    5.       └─xml2:::read_html.default(cnt)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
    9.         └─xml2:::read_xml.character(...)
   10.           └─xml2:::path_to_connection(x)
   11.             └─xml2:::check_path(path)
  ── Error (test-series_obj.R:23:3): it should create series url ─────────────────
  Error: 'NA' does not exist in current working directory ('C:/r_packages/pkgcheck/CRAN/rbcb/rbcb.Rcheck/tests/testthat').
  Backtrace:
       ▆
    1. └─rbcb:::series_obj(code) at test-series_obj.R:23:2
    2.   └─base::lapply(ser, series_info)
    3.     └─rbcb FUN(X[[i]], ...)
    4.       ├─xml2::read_html(cnt)
    5.       └─xml2:::read_html.default(cnt)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
    9.         └─xml2:::read_xml.character(...)
   10.           └─xml2:::path_to_connection(x)
   11.             └─xml2:::check_path(path)
  ── Error (test-url.R:4:1): (code run outside of `test_that()`) ─────────────────
  Error: 'NA' does not exist in current working directory ('C:/r_packages/pkgcheck/CRAN/rbcb/rbcb.Rcheck/tests/testthat').
  Backtrace:
       ▆
    1. └─rbcb:::series_obj(c(USDBRL = 1)) at test-url.R:4:0
    2.   └─base::lapply(ser, series_info)
    3.     └─rbcb FUN(X[[i]], ...)
    4.       ├─xml2::read_html(cnt)
    5.       └─xml2:::read_html.default(cnt)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
    9.         └─xml2:::read_xml.character(...)
   10.           └─xml2:::path_to_connection(x)
   11.             └─xml2:::check_path(path)
  
  [ FAIL 3 | WARN 0 | SKIP 22 | PASS 0 ]
  Error: Test failures
  Execution halted