Running 'testthat.R' [17s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(cthist)
  > 
  > test_check("cthist")
  NCT02586649 - 4 of 4
  2025-08-27 16:30:05.943841 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.
  NCT04338971 - 1 of 4
  NCT04338971 - 2 of 4
  NCT04338971 - 3 of 4
  NCT04338971 - 4 of 4
  2025-08-27 16:30:08.08912 NCT04338971 processed (4 versions, 100%)
  Rows: 4 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 1 | WARN 0 | SKIP 0 | PASS 30 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-clinicaltrials_gov_version_criteria.R:9:9'): ClinicalTrials.gov criteria downloads correctly ──
  version$criteria (`actual`) not equal to "<p>Inclusion Criteria (MCI patients):</p><ul><li>right handedness</li><li><p>amnestic and amnestic plus MCI with:</p><ol><li>subjective memory impairment;</li><li>objective memory difficulties, at least 1 SD below gender, age and education adjusted standard values;</li><li>relatively normal performance in other cognitive domains;</li><li>no constraints in activities of daily livings</li><li>age: 50-90 years</li></ol></li></ul><p>Exclusion Criteria:</p><ul><li>severe internal or psychiatric disease</li><li>epilepsy</li><li>other severe neurological diseases, e.g. previous major stroke or brain tumor</li><li>DMS-IV manifest dementia</li><li>contraindication for MRT (claustrophobia, metallic implants, tattoos)</li></ul>" (`expected`).
  
  lines(actual) vs lines(expected)
  - "<p>Inclusion Criteria (MCI patients):</p><ul><li>right handedness</li><li><p>amnestic and amnestic plus MCI with:</p><ol><li>subjective memory impairment;</li><li>objective memory difficulties, at least 1 SD below gender, age and education adjusted standard values;</li><li>relatively normal performance in other cognitive domains;</li><li>no constraints in activities of daily livings</li><li>age: 50-90 years</li></ol></li></ul><p>Exclusion Criteria:</p><ul><li>severe internal or psychiatric disease</li><li>epilepsy</li><li>other severe neurological diseases, e.g."
  - "previous major stroke or brain tumor</li><li>DMS-IV manifest dementia</li><li>contraindication for MRT (claustrophobia, metallic implants, tattoos)</li></ul>"
  + "<p>Inclusion Criteria (MCI patients):</p><ul><li>right handedness</li><li><p>amnestic and amnestic plus MCI with:</p><ol><li>subjective memory impairment;</li><li>objective memory difficulties, at least 1 SD below gender, age and education adjusted standard values;</li><li>relatively normal performance in other cognitive domains;</li><li>no constraints in activities of daily livings</li><li>age: 50-90 years</li></ol></li></ul><p>Exclusion Criteria:</p><ul><li>severe internal or psychiatric disease</li><li>epilepsy</li><li>other severe neurological diseases, e.g. previous major stroke or brain tumor</li><li>DMS-IV manifest dementia</li><li>contraindication for MRT (claustrophobia, metallic implants, tattoos)</li></ul>"
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 30 ]
  Error: Test failures
  Execution halted