Running ‘testthat.R’ [30s/66s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(bndesr)
  > 
  > test_check("bndesr")
  Please wait for the download to complete.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  `curl` package not installed, falling back to using `url()`
  Completed data query.
  Please wait for the download to complete.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  `curl` package not installed, falling back to using `url()`
  Completed data query.
  trying URL 'https://www.bndes.gov.br/arquivos/central-downloads/operacoes_financiamento/naoautomaticas/naoautomaticas.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 4188291 bytes (4.0 MB)
  ==================================================
  downloaded 4.0 MB
  
  trying URL 'https://www.bndes.gov.br/arquivos/central-downloads/operacoes_financiamento/automaticas/operacoes_indiretas_automaticas_2017-01-01_ate_2022-11-30.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 48181368 bytes (45.9 MB)
  ==================================================
  downloaded 45.9 MB
  
  Please wait while the files are being imported into R. This may take a while.
  Importing file financiamentos_nao_automatico.xlsx
  Importing file financiamentos_2017-2022.xlsx
  Completed data query.
  trying URL 'https://www.bndes.gov.br/wps/wcm/connect/site/46164445-1557-4991-b816-b9b90491df93/BASE+DE+DADOS+DESEMBOLSO_2022.xlsx?MOD=AJPERES&amp;CACHEID=ROOTWORKSPACE.Z18_7QGCHA41LORVA0AHO1SIO51085-46164445-1557-4991-b816-b9b90491df93-ohz44C-'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 6365008 bytes (6.1 MB)
  ==================================================
  downloaded 6.1 MB
  
  Please wait while the files are being imported into R. This may take a while.
  Importing file desembolsos_2022.xlsx
  Completed data query.
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 5 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-query_bndespar_portfolio.R:5:3'): Check row number ───────────
  nrow(df) is not strictly more than 3125. Difference: -2
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 5 ]
  Error: Test failures
  Execution halted