Running ‘testthat.R’ [39s/141s]
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()`
  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 4176494 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 4593401 bytes (4.4 MB)
  ==================================================
  downloaded 4.4 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 1 | SKIP 0 | PASS 5 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-query_bndespar_desimbursements.R:2'): (code run outside of `test_that()`) ──
  Error in `(function (con, what, n = 1L, size = NA_integer_, signed = TRUE, 
      endian = .Platform$endian) 
  {
      if (!endian %in% c("big", "little", "swap")) 
          stop("invalid 'endian' argument")
      if (is.character(con)) {
          con <- file(con, "rb")
          on.exit(close(con))
      }
      swap <- endian != .Platform$endian
      if (!is.character(what) || is.na(what) || length(what) != 
          1L || !any(what == c("numeric", "double", "integer", 
          "int", "logical", "complex", "character", "raw"))) 
          what <- typeof(what)
      .Internal(readBin(con, what, n, size, signed, swap))
  })(structure(4L, class = c("url", "connection"), conn_id = <pointer: 0x15b>), 
      raw(0), 131071L)`: cannot read from connection
  Backtrace:
      ▆
   1. ├─bndesr::query_bndespar_desimbursements() at test-query_bndespar_desimbursements.R:2:0
   2. │ ├─dplyr::filter(...)
   3. │ ├─janitor::clean_names(...)
   4. │ └─readr::read_csv2(...)
   5. │   └─vroom::vroom(...)
   6. │     └─vroom:::vroom_(...)
   7. └─base (local) `<fn>`(`<url>`, `<raw>`, 131071L)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 5 ]
  Error: Test failures
  In addition: Warning message:
  closing unused connection 4 (https://www.bndes.gov.br/arquivos/central-downloads/operacoes_renda_variavel/desembolsos-renda-variavel.csv) 
  Execution halted