* using log directory 'd:/Rcompile/CRANpkg/local/4.3/wbids.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'wbids' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [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 ... [4s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 ... [1s] 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 ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [42s] ERROR Running 'testthat.R' [41s] 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: D:\temp\2025_01_29_01_50_00_32701\Rtmps7Eh1f\filea44c5a9... trying URL 'https://invalid-url.com/file.xlsx' Content type 'text/html; charset=utf-8' length 1198 bytes ================================================== downloaded 1198 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 'D:\temp\2025_01_29_01_50_00_32701\Rtmps7Eh1f\filea44c5a98605f.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) ``(...) 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 in 'inst/doc' ... OK * checking re-building of vignette outputs ... [6s] OK * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR