* using log directory 'd:/Rcompile/CRANpkg/local/4.6/kofdata.Rcheck' * using R Under development (unstable) (2025-04-16 r88149 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'kofdata/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'kofdata' version '0.2.1' * 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 'kofdata' can be installed ... OK * checking installed package size ... OK * checking package 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] 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 ... [3s] 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 examples ... [11s] ERROR Running examples in 'kofdata-Ex.R' failed The error most likely occurred in: > ### Name: download_cached_file > ### Title: get_dataset > ### Aliases: download_cached_file > > ### ** Examples > > f <- download_cached_file("kofdatapkg", "313984fcd9f343d3961891319b0ed321", + "empty.txt",file.path(tempdir(),"empty.txt")) Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Timeout was reached [datenservice.kof.ethz.ch]: SSL/TLS connection timeout Calls: download_cached_file ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [27s] ERROR Running 'testthat.R' [27s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(kofdata) Loading required package: jsonlite Loading required package: httr > > test_check("kofdata") [ FAIL 2 | WARN 0 | SKIP 6 | PASS 24 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3', 'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3', 'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3', 'test_list_keys.R:22:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_get_collection.R:4:3'): get_collection works for public collection ── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [datenservice.kof.ethz.ch]: SSL/TLS connection timeout Backtrace: ▆ 1. ├─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3 2. │ └─httr::GET(url, query = query) 3. │ └─httr:::request_perform(req, hu$handle$handle) 4. │ ├─httr:::request_fetch(req$output, req$url, handle) 5. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle) 6. │ └─curl::curl_fetch_memory(url, handle = handle) 7. └─curl:::raise_libcurl_error(...) ── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ── `get_collection("some_nonexistent_set")` threw an error with unexpected message. Expected match: "The API responded" Actual message: "Timeout was reached [datenservice.kof.ethz.ch]: SSL/TLS connection timeout" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_get_collection.R:23:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─kofdata::get_collection("some_nonexistent_set") 7. │ └─httr::GET(url, query = query) 8. │ └─httr:::request_perform(req, hu$handle$handle) 9. │ ├─httr:::request_fetch(req$output, req$url, handle) 10. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle) 11. │ └─curl::curl_fetch_memory(url, handle = handle) 12. └─curl:::raise_libcurl_error(...) [ FAIL 2 | WARN 0 | SKIP 6 | PASS 24 ] Error: Test failures Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 2 ERRORs