CRAN Package Check Results for Package bndesr

Last updated on 2023-04-02 07:54:49 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.1 2.97 65.52 68.49 OK
r-devel-linux-x86_64-debian-gcc 1.0.1 2.05 30.13 32.18 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.1 84.04 OK
r-devel-linux-x86_64-fedora-gcc 1.0.1 85.34 OK
r-devel-windows-x86_64 1.0.1 6.00 152.00 158.00 OK
r-patched-linux-x86_64 1.0.1 2.58 63.91 66.49 OK
r-release-linux-x86_64 1.0.1 2.38 63.98 66.36 OK
r-release-macos-arm64 1.0.1 246.00 OK
r-release-macos-x86_64 1.0.1 168.00 OK
r-release-windows-x86_64 1.0.1 15.00 136.00 151.00 OK
r-oldrel-macos-arm64 1.0.1 274.00 OK
r-oldrel-macos-x86_64 1.0.1 164.00 OK
r-oldrel-windows-ix86+x86_64 1.0.1 8.00 152.00 160.00 OK

Additional issues

donttest

Check Details

Version: 1.0.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [8s/264s]
    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.
     Downloading file financiamentos_nao_automatico.xlsx
     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
    
     Downloading file financiamentos_2017-2022.xlsx
     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 14.0 MB
    
     Error in download.file(url_list[i], destfile = paste0(dir.temp, "/financiamentos", :
     download from 'https://www.bndes.gov.br/arquivos/central-downloads/operacoes_financiamento/automaticas/operacoes_indiretas_automaticas_2017-01-01_ate_2022-11-30.xlsx' failed
     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
     Please wait. Downloading data from 1995 to 2001
     trying URL 'https://www.bndes.gov.br/wps/wcm/connect/site/46164445-1557-4991-b816-b9b90491df93/BASE+DE+DADOS+DESEMBOLSO_2022.xlsx?MOD=AJPERES&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 2 | SKIP 0 | PASS 5 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-query_contracts.R:17:1'): (code run outside of `test_that()`) ──
     Error in `utils::unzip(zip_path, list = TRUE)`: zip file '/home/hornik/tmp/scratch/RtmpRWtnxV/financiamentos_2017-2022.xlsx' cannot be opened
     Backtrace:
     ▆
     1. ├─bndesr::query_contracts(year = 2022) at test-query_contracts.R:17:0
     2. │ ├─base::suppressWarnings(...)
     3. │ │ └─base::withCallingHandlers(...)
     4. │ ├─janitor::clean_names(...)
     5. │ └─readxl::read_excel(...)
     6. │ └─readxl:::read_excel_(...)
     7. │ ├─readxl:::set_readxl_names(...)
     8. │ │ └─tibble::as_tibble(l, .name_repair = .name_repair)
     9. │ └─readxl (local) read_fun(...)
     10. └─readxl (local) `<fn>`(...)
     11. └─utils::unzip(zip_path, list = TRUE)
    
     [ FAIL 1 | WARN 2 | SKIP 0 | PASS 5 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc