Running ‘testthat.R’ [406s/561s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(CDMConnector)
  > 
  > test_check("CDMConnector")
  trying URL 'https://example-data.ohdsi.dev/GiBleed.zip'
  Content type 'application/zip' length 6754786 bytes (6.4 MB)
  ==================================================
  downloaded 6.4 MB
  
  
  Download completed!
  Creating CDM database /home/hornik/tmp/scratch/RtmpBIXbcL/file2adf4a7f81778d/GiBleed_5.3.zip
  ============>------------------   41% | ETA:  4s
  Note: method with signature 'DBIConnection#Id' chosen for function 'dbExistsTable',
   target signature 'duckdb_connection#Id'.
   "duckdb_connection#ANY" would also be valid
  Support for 'prefix' in writeSchema is deprecated and will be removed in a future release. Please use the `writePrefix` argument in `cdmFromCon()` instead.
  This message is displayed once per session.
  ! cdm name not specified and could not be inferred from the cdm source table
  ! cdm name not specified and could not be inferred from the cdm source table
  ! cdm name not specified and could not be inferred from the cdm source table
  ! cdm name not specified and could not be inferred from the cdm source table
  i Generating 3 cohorts
  i Generating cohort (1/3) - gibleed_male
  v Generating cohort (1/3) - gibleed_male [1.7s]
  
  i Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01 [457ms]
  
  i Generating cohort (3/3) - deep_vein_thrombosis_01
  v Generating cohort (3/3) - deep_vein_thrombosis_01 [342ms]
  
  i Generating 3 cohorts
  i Generating 3 cohorts
  i Generating cohort (1/3) - gibleed_male
  v Generating cohort (1/3) - gibleed_male [1.1s]
  
  i Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01 [372ms]
  
  i Generating cohort (3/3) - deep_vein_thrombosis_01
  v Generating cohort (3/3) - deep_vein_thrombosis_01 [475ms]
  
  i Generating 3 cohorts
  i Generating 2 cohorts
  i Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01 [488ms]
  
  i Generating cohort (2/2) - deep_vein_thrombosis_01
  v Generating cohort (2/2) - deep_vein_thrombosis_01 [500ms]
  
  i Generating 2 cohorts
  i Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01 [449ms]
  
  i Generating cohort (2/2) - deep_vein_thrombosis_01
  v Generating cohort (2/2) - deep_vein_thrombosis_01 [324ms]
  
  i Generating 2 cohorts
  i Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01 [407ms]
  
  i Generating cohort (2/2) - deep_vein_thrombosis_01
  v Generating cohort (2/2) - deep_vein_thrombosis_01 [290ms]
  
  ! cdm name not specified and could not be inferred from the cdm source table
  i Generating 2 cohorts
  i Generating 2 cohorts
  i Generating 2 cohorts
  i Generating 1 cohort
  i Generating cohort (1/1) - gibleed_default
  v Generating cohort (1/1) - gibleed_default [599ms]
  
  i Generating 1 cohort
  i Generating cohort (1/1) - gibleed_default_with_descendants
  v Generating cohort (1/1) - gibleed_default_with_descendants [551ms]
  
  i Generating 1 cohort
  i Generating cohort (1/1) - gibleed_all
  v Generating cohort (1/1) - gibleed_all [672ms]
  
  i Generating 1 cohort
  i Generating cohort (1/1) - gibleed_all
  v Generating cohort (1/1) - gibleed_all [648ms]
  
  ! cdm name not specified and could not be inferred from the cdm source table
  i Generating 1 cohort
  i Generating cohort (1/1) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (1/1) - cerebral_venous_sinus_thrombosis_01 [461ms]
  
  
  Attaching package: 'clock'
  
  The following object is masked from 'package:CDMConnector':
  
      as_date
  
  =====================>---------   70% | ETA:  2s
  ! cdm name not specified and could not be inferred from the cdm source table
  i Generating 5 cohorts
  i Generating cohort (1/5) - gibleed_all
  v Generating cohort (1/5) - gibleed_all [642ms]
  
  i Generating cohort (2/5) - gibleed_default
  v Generating cohort (2/5) - gibleed_default [717ms]
  
  i Generating cohort (3/5) - gibleed_default_with_descendants
  v Generating cohort (3/5) - gibleed_default_with_descendants [678ms]
  
  i Generating cohort (4/5) - gibleed_all_end_10
  v Generating cohort (4/5) - gibleed_all_end_10 [685ms]
  
  i Generating cohort (5/5) - gibleed_end_10
  v Generating cohort (5/5) - gibleed_end_10 [655ms]
  
  Getting distinct count of concept relationship table
  Getting count of different relationship IDs in concept relationship table
  Getting join of concept and concept class computed to a temp table
  Getting concept table collected into memory
  Getting join of person and observation period collected into memory
  Getting summary of observation period start and end dates by gender concept id
  i Generating 2 cohorts
  i Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (1/2) - cerebral_venous_sinus_thrombosis_01 [433ms]
  
  i Generating cohort (2/2) - deep_vein_thrombosis_01
  v Generating cohort (2/2) - deep_vein_thrombosis_01 [313ms]
  
  i Generating 3 cohorts
  i Generating cohort (1/3) - another_gibleed_male
  v Generating cohort (1/3) - another_gibleed_male [1.5s]
  
  i Generating cohort (2/3) - another_cerebral_venous_sinus_thrombosis_01
  v Generating cohort (2/3) - another_cerebral_venous_sinus_thrombosis_01 [533ms]
  
  i Generating cohort (3/3) - another_deep_vein_thrombosis_01
  v Generating cohort (3/3) - another_deep_vein_thrombosis_01 [311ms]
  
  i Generating 3 cohorts
  i Generating cohort (1/3) - gibleed_male
  v Generating cohort (1/3) - gibleed_male [2.1s]
  
  i Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01 [433ms]
  
  i Generating cohort (3/3) - deep_vein_thrombosis_01
  v Generating cohort (3/3) - deep_vein_thrombosis_01 [313ms]
  
  i Generating 3 cohorts
  i Generating cohort (1/3) - gibleed_male
  v Generating cohort (1/3) - gibleed_male [1.4s]
  
  i Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01
  v Generating cohort (2/3) - cerebral_venous_sinus_thrombosis_01 [316ms]
  
  i Generating cohort (3/3) - deep_vein_thrombosis_01
  v Generating cohort (3/3) - deep_vein_thrombosis_01 [497ms]
  
  i `EUNOMIA_DATA_FOLDER` set to: '/home/hornik/tmp/scratch/RtmpBIXbcL'.
  trying URL 'https://example-data.ohdsi.dev/GiBleed.zip'
  Content type 'application/zip' length 6754786 bytes (6.4 MB)
  ==================================================
  downloaded 6.4 MB
  
  
  Download completed!
  Creating CDM database /home/hornik/tmp/scratch/RtmpBIXbcL/GiBleed_5.3.zip
  Getting distinct count of concept relationship table
  Getting count of different relationship IDs in concept relationship table
  Getting join of concept and concept class computed to a temp table
  Getting concept table collected into memory
  Getting join of person and observation period collected into memory
  Getting summary of observation period start and end dates by gender concept id
  ! cdm name not specified and could not be inferred from the cdm source table
  ! cdm name not specified and could not be inferred from the cdm source table
  ! cdm name not specified and could not be inferred from the cdm source table
  i Generating 1 cohort
  i Generating cohort (1/1) - gibleed_male
  v Generating cohort (1/1) - gibleed_male [1.3s]
  
  Note: method with signature 'DBIConnection#Id' chosen for function 'dbExistsTable',
   target signature 'duckdb_connection#Id'.
   "duckdb_connection#ANY" would also be valid
  ! cdm name not specified and could not be inferred from the cdm source table
  ! cdm name not specified and could not be inferred from the cdm source table
  [ FAIL 4 | WARN 11 | SKIP 21 | PASS 342 ]
  
  ══ Skipped tests (21) ══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-04-db-generateConceptCohortSet.R:381:3',
    'test-04-db-generateConceptCohortSet.R:399:3',
    'test-04-db-generateConceptCohortSet.R:425:3', 'test-Eunomia.R:61:3',
    'test-db-recordCohortAttrition.R:121:5',
    'test-db-recordCohortAttrition.R:134:3', 'test-memory-issue.R:6:3',
    'test-write_prefix_cohort_generation_snowflake.R:4:3'
  • arrow::write_parquet is failing (1): 'test-local_cdm.R:3:3'
  • eunomiaIsAvailable("empty_cdm") is not TRUE (1): 'test-Eunomia.R:42:3'
  • failing test (2): 'test-07-db-dateadd.R:126:3', 'test-db-in_schema.R:34:5'
  • manual test (7): 'test-02-db-cdm.R:234:3',
    'test-03-db-generateCohortSet.R:111:3',
    'test-03-db-generateCohortSet.R:248:3', 'test-09-db-copy_cdm_to.R:62:3',
    'test-Eunomia.R:2:3', 'test-db-in_schema.R:46:3',
    'test-db-write_schema_with_database.R:5:3'
  • {Capr} is not installed (1): 'test-04-db-generateConceptCohortSet.R:578:3'
  • {TreatmentPatterns} is not installed (1):
    'test-03-db-generateCohortSet.R:130:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-04-db-generateConceptCohortSet.R:374:5'): duckdb - generateConceptCohortSet ──
  `actual` (`actual`) not equal to `expected` (`expected`).
  
    `attr(attr(actual, 'cohort_codelist'), 'row.names')`: 1
  `attr(attr(expected, 'cohort_codelist'), 'row.names')`:  
  
    `attr(actual, 'cohort_codelist')$cohort_definition_id`: 1
  `attr(expected, 'cohort_codelist')$cohort_definition_id`:  
  
  `attr(actual, 'cohort_codelist')$codelist_name`:   "gibleed"
  `attr(expected, 'cohort_codelist')$codelist_name`:          
  
    `attr(actual, 'cohort_codelist')$concept_id`: 192671
  `attr(expected, 'cohort_codelist')$concept_id`:       
  
  `attr(actual, 'cohort_codelist')$type`:   "index event"
  `attr(expected, 'cohort_codelist')$type`:              
  Backtrace:
      ▆
   1. └─CDMConnector (local) test_generate_concept_cohort_set(con, cdm_schema, write_schema) at test-04-db-generateConceptCohortSet.R:374:5
   2.   └─testthat::expect_equal(actual, expected) at test-04-db-generateConceptCohortSet.R:58:3
  ── Failure ('test-04-db-generateConceptCohortSet.R:374:5'): duckdb - generateConceptCohortSet ──
  `actual` (`actual`) not equal to `expected` (`expected`).
  
    `attr(attr(actual, 'cohort_codelist'), 'row.names')`: 1
  `attr(attr(expected, 'cohort_codelist'), 'row.names')`:  
  
    `attr(actual, 'cohort_codelist')$cohort_definition_id`: 1
  `attr(expected, 'cohort_codelist')$cohort_definition_id`:  
  
  `attr(actual, 'cohort_codelist')$codelist_name`:   "gibleed"
  `attr(expected, 'cohort_codelist')$codelist_name`:          
  
    `attr(actual, 'cohort_codelist')$concept_id`: 192671
  `attr(expected, 'cohort_codelist')$concept_id`:       
  
  `attr(actual, 'cohort_codelist')$type`:   "index event"
  `attr(expected, 'cohort_codelist')$type`:              
  Backtrace:
      ▆
   1. └─CDMConnector (local) test_generate_concept_cohort_set(con, cdm_schema, write_schema) at test-04-db-generateConceptCohortSet.R:374:5
   2.   └─testthat::expect_equal(actual, expected) at test-04-db-generateConceptCohortSet.R:230:3
  ── Failure ('test-04-db-generateConceptCohortSet.R:374:5'): duckdb - generateConceptCohortSet ──
  `actual` (`actual`) not equal to `expected` (`expected`).
  
    `attr(attr(actual, 'cohort_codelist'), 'row.names')`: 1
  `attr(attr(expected, 'cohort_codelist'), 'row.names')`:  
  
    `attr(actual, 'cohort_codelist')$cohort_definition_id`: 1
  `attr(expected, 'cohort_codelist')$cohort_definition_id`:  
  
  `attr(actual, 'cohort_codelist')$codelist_name`:   "gibleed"
  `attr(expected, 'cohort_codelist')$codelist_name`:          
  
    `attr(actual, 'cohort_codelist')$concept_id`: 192671
  `attr(expected, 'cohort_codelist')$concept_id`:       
  
  `attr(actual, 'cohort_codelist')$type`:   "index event"
  `attr(expected, 'cohort_codelist')$type`:              
  Backtrace:
      ▆
   1. └─CDMConnector (local) test_generate_concept_cohort_set(con, cdm_schema, write_schema) at test-04-db-generateConceptCohortSet.R:374:5
   2.   └─testthat::expect_equal(actual, expected) at test-04-db-generateConceptCohortSet.R:272:3
  ── Failure ('test-04-db-generateConceptCohortSet.R:547:3'): invalid cdm records are ignored in generateConceptCohortSet ──
  `actual` (`actual`) not equal to `expected` (`expected`).
  
  `attr(actual, 'cohort_codelist')` is an S3 object of class <tbl_df/tbl/data.frame>, a list
  `attr(expected, 'cohort_codelist')` is absent
  
  [ FAIL 4 | WARN 11 | SKIP 21 | PASS 342 ]
  Error: Test failures
  Execution halted