* using log directory 'd:/Rcompile/CRANpkg/local/4.5/cthist.Rcheck' * using R version 4.5.3 (2026-03-11 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'cthist/DESCRIPTION' ... OK * this is package 'cthist' version '2.1.12' * 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 'cthist' 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 ... [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 examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [58s] ERROR Running 'testthat.R' [58s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(cthist) > > test_check("cthist") Saving _problems/test-clinicaltrials_gov_dates-2.R Saving _problems/test-clinicaltrials_gov_download-8.R Error downloading version: NCT05827978 version 3 Here's the original error message: Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached [clinicaltrials.gov]: Connection timed out after 10004 milliseconds NCT02586649 - 4 of 4 2026-07-08 18:39:21.724844 NCT02586649 processed (4 versions, 100%) Rows: 1 Columns: 29 -- Column specification -------------------------------------------------------- Delimiter: "," chr (20): nctid, overall_status, study_start_date_precision, primary_comple... dbl (3): version_number, total_versions, enrolment lgl (3): accepts_healthy_volunteers, whystopped, results_posted date (3): version_date, study_start_date, primary_completion_date i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. Rows: 5 Columns: 29 -- Column specification -------------------------------------------------------- Delimiter: "," chr (20): nctid, overall_status, study_start_date_precision, primary_comple... dbl (3): version_number, total_versions, enrolment lgl (3): accepts_healthy_volunteers, whystopped, results_posted date (3): version_date, study_start_date, primary_completion_date i Use `spec()` to retrieve the full column specification for this data. i Specify the column types or set `show_col_types = FALSE` to quiet this message. [ FAIL 2 | WARN 0 | SKIP 0 | PASS 29 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-clinicaltrials_gov_dates.R:2:5'): ClinicalTrials.gov version dates download correctly ── Error in `value[[3L]](cond)`: object 'nctid' not found Backtrace: ▆ 1. └─cthist::clinicaltrials_gov_dates("NCT00942747") at test-clinicaltrials_gov_dates.R:2:5 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. ├─base (local) tryCatchOne(...) 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 6. └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) 7. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8. └─value[[3L]](cond) 9. ├─base::message(paste("Error downloading NCT ID:", nctid)) 10. └─base::paste("Error downloading NCT ID:", nctid) ── Error ('test-clinicaltrials_gov_download.R:6:5'): ClinicalTrials.gov history entries mass-download correctly ── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [clinicaltrials.gov]: Connection timed out after 10016 milliseconds Backtrace: ▆ 1. ├─cthist::clinicaltrials_gov_download(...) at test-clinicaltrials_gov_download.R:6:5 2. │ ├─httr::http_error("https://clinicaltrials.gov") 3. │ └─httr:::http_error.character("https://clinicaltrials.gov") 4. │ ├─httr::http_error(HEAD(x, ...)) 5. │ └─httr::HEAD(x, ...) 6. │ └─httr:::request_perform(req, hu$handle$handle) 7. │ ├─httr:::request_fetch(req$output, req$url, handle) 8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle) 9. │ └─curl::curl_fetch_memory(url, handle = handle) 10. └─curl:::raise_libcurl_error(...) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 29 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR