- using R version 4.4.2 Patched (2025-02-03 r87683)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-12) 14.2.0
GNU Fortran (Debian 14.2.0-12) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘wbids/DESCRIPTION’ ... OK
- this is package ‘wbids’ version ‘0.1.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘wbids’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [6s/8s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/7s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [30s/46s] ERROR
Running ‘testthat.R’ [30s/45s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(wbids)
>
> test_check("wbids")
Downloading file to: /home/hornik/tmp/scratch/RtmpJZgyli/file16c3b5dbaff41.xlsx
trying URL 'https://invalid-url.com/file.xlsx'
Content type 'text/html; charset=utf-8' length 1194 bytes
==================================================
downloaded 1194 bytes
Reading in file.
[ FAIL 1 | WARN 0 | SKIP 8 | PASS 85 ]
══ Skipped tests (8) ═══════════════════════════════════════════════════════════
• On CRAN (8): 'test-ids_bulk.R:5:3', 'test-ids_bulk.R:58:3',
'test-ids_bulk.R:106:3', 'test-ids_bulk.R:148:3', 'test-ids_bulk.R:198:3',
'test-ids_bulk.R:228:3', 'test-ids_bulk.R:260:3', 'test-ids_bulk.R:314:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ids_bulk.R:40:3'): ids_bulk fails gracefully with invalid URL ──
Error in `utils::unzip(zip_path, list = TRUE)`: zip file '/home/hornik/tmp/scratch/RtmpJZgyli/file16c3b5dbaff41.xlsx' cannot be opened
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-ids_bulk.R:40:3
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─wbids::ids_bulk("https://invalid-url.com/file.xlsx")
8. │ └─wbids:::read_bulk_file(file_path)
9. │ ├─base::colnames(readxl::read_excel(path = file_path, n_max = 0))
10. │ │ └─base::is.data.frame(x)
11. │ └─readxl::read_excel(path = file_path, n_max = 0)
12. │ └─readxl:::read_excel_(...)
13. │ ├─readxl:::set_readxl_names(...)
14. │ │ └─tibble::as_tibble(l, .name_repair = .name_repair)
15. │ └─readxl (local) read_fun(...)
16. └─readxl (local) `<fn>`(...)
17. └─utils::unzip(zip_path, list = TRUE)
[ FAIL 1 | WARN 0 | SKIP 8 | PASS 85 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/3s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR