Running 'testthat.R' [69s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(cthist)
  > 
  > test_check("cthist")
  2021-12-15 18:12:02 NCT00942747 processed (3 versions, 50%)
  2021-12-15 18:12:03 NCT04796324 processed (2 versions, 100%)
  DRKS ID does not seem to exist: DRKS00005219
  Here's the original error message:
  Error in open.connection(x, "rb"): Timeout was reached: [drks.de] Connection timed out after 10005 milliseconds
   
  
  DRKS ID does not seem to exist: DRKS00005219
  Here's the original error message:
  Error in open.connection(x, "rb"): Timeout was reached: [drks.de] Connection timed out after 10006 milliseconds
   
  
  Version caused an error: DRKS00005219 version 0
  Here's the original error message:
  Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached: [drks.de] Connection timed out after 10001 milliseconds
   
  
  2021-12-15 18:12:35 DRKS00005219 processed (1 versions 50%)
  DRKS ID does not seem to exist: DRKS00015220
  Here's the original error message:
  Error in open.connection(x, "rb"): Timeout was reached: [drks.de] Connection timed out after 10015 milliseconds
   
  
  Version caused an error: DRKS00015220 version 0
  Here's the original error message:
  Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached: [drks.de] Connection timed out after 10009 milliseconds
   
  
  2021-12-15 18:12:55 DRKS00015220 processed (1 versions 100%)
  2 error(s) detected among your downloaded data. If you re-run this script, it will remove any data tagged as an error and try to download again.
  Version caused an error: DRKS00005219 version 2
  Here's the original error message:
  Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached: [drks.de] Connection timed out after 10001 milliseconds
   
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-drks_de_dates.R:2:3): DRKS version dates download correctly ───
  "2014-04-17" %in% drks_de_dates("DRKS00005219") (`actual`) not equal to TRUE (`expected`).
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-drks_de_download.R:6:5): DRKS.de history entries mass-download correctly ──
  drks_de_download(c("DRKS00005219", "DRKS00015220"), filename) (`actual`) not equal to TRUE (`expected`).
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-drks_de_version.R:2:3): DRKS.de version downloads correctly ───
  length(drks_de_version("DRKS00005219", 1)) (`actual`) not equal to 13 (`expected`).
  
    `actual`:  1
  `expected`: 13
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 3 ]
  Error: Test failures
  In addition: Warning message:
  In .Internal(exists(x, env, "any", FALSE)) :
    closing unused connection 4 (https://drks.de/drks_web/navigate.do?navigationId=trial.history&TRIAL_ID=DRKS00005219)
  Execution halted