Running ‘testthat.R’ [5s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 65 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-12-months-inflation.R:8:3): it should fetch data from 12-months-infl market expectations API ──
  Error in `.get_series(url)`: BCB API Request error 503
  Content returned:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>503 Service Temporarily Unavailable</title>
  </head><body>
  <h1>Service Temporarily Unavailable</h1>
  <p>The server is temporarily unable to service your
  request due to maintenance downtime or capacity
  problems. Please try again later.</p>
  </body></html>
  
  Backtrace:
      ▆
   1. └─rbcb::get_twelve_months_inflation_expectations(...) at test-12-months-inflation.R:8:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
  ── Error (test-focus-annual.R:8:3): it should fetch data from annual market expectations API ──
  Error in `.get_series(url)`: BCB API Request error 503
  Content returned:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>503 Service Temporarily Unavailable</title>
  </head><body>
  <h1>Service Temporarily Unavailable</h1>
  <p>The server is temporarily unable to service your
  request due to maintenance downtime or capacity
  problems. Please try again later.</p>
  </body></html>
  
  Backtrace:
      ▆
   1. └─rbcb::get_annual_market_expectations(indic, start_date, end_date) at test-focus-annual.R:8:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
  ── Error (test-focus-monthly.R:8:3): it should fetch data from monthly market expectations API ──
  Error in `.get_series(url)`: BCB API Request error 503
  Content returned:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>503 Service Temporarily Unavailable</title>
  </head><body>
  <h1>Service Temporarily Unavailable</h1>
  <p>The server is temporarily unable to service your
  request due to maintenance downtime or capacity
  problems. Please try again later.</p>
  </body></html>
  
  Backtrace:
      ▆
   1. └─rbcb::get_monthly_market_expectations(indic, start_date, end_date) at test-focus-monthly.R:8:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
  ── Error (test-focus-monthly.R:16:3): it should fetch data from monthly market expectations API without start_date ──
  Error in `.get_series(url)`: BCB API Request error 503
  Content returned:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>503 Service Temporarily Unavailable</title>
  </head><body>
  <h1>Service Temporarily Unavailable</h1>
  <p>The server is temporarily unable to service your
  request due to maintenance downtime or capacity
  problems. Please try again later.</p>
  </body></html>
  
  Backtrace:
      ▆
   1. └─rbcb::get_monthly_market_expectations(...) at test-focus-monthly.R:16:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
  ── Error (test-focus-monthly.R:23:3): it should fetch data from monthly market expectations API without end_date ──
  Error in `.get_series(url)`: BCB API Request error 503
  Content returned:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>503 Service Temporarily Unavailable</title>
  </head><body>
  <h1>Service Temporarily Unavailable</h1>
  <p>The server is temporarily unable to service your
  request due to maintenance downtime or capacity
  problems. Please try again later.</p>
  </body></html>
  
  Backtrace:
      ▆
   1. └─rbcb::get_monthly_market_expectations(indic, start_date = start_date) at test-focus-monthly.R:23:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
  ── Error (test-focus-quarterly.R:8:3): it should fetch data from quarterly market expectations API ──
  Error in `.get_series(url)`: BCB API Request error 503
  Content returned:
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>503 Service Temporarily Unavailable</title>
  </head><body>
  <h1>Service Temporarily Unavailable</h1>
  <p>The server is temporarily unable to service your
  request due to maintenance downtime or capacity
  problems. Please try again later.</p>
  </body></html>
  
  Backtrace:
      ▆
   1. └─rbcb::get_quarterly_market_expectations(indic, start_date, end_date) at test-focus-quarterly.R:8:2
   2.   └─rbcb::get_market_expectations(...)
   3.     └─rbcb:::.get_series(url)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 65 ]
  Error: Test failures
  Execution halted