Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [523s/340s]
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(CohortCharacteristics)
  > 
  > test_check("CohortCharacteristics")
  Starting 2 test processes.
  > test-plotCohortTiming.R: i The following estimates will be calculated:
  > test-plotCohortTiming.R: * days_between_cohort_entries: min, q25, median, q75, max, density
  > test-plotCohortTiming.R: ! Table is collected to memory as not all requested estimates are supported on the database side
  > test-plotCohortTiming.R: > Start summary of data, at 2026-03-19 16:52:10.484962
  > test-plotCohortTiming.R: v Summary finished, at 2026-03-19 16:52:10.733767
  > test-plotCohortTiming.R: `result_id` is not present in result.
  > test-plotCohortTiming.R: `result_id` is not present in result.
  > test-plotCohortTiming.R: `result_id` is not present in result.
  > test-plotCohortTiming.R: `result_id` is not present in result.
  Saving _problems/test-plotCohortTiming-245.R
  > test-plotCohortAttrition.R: i The following estimates will be calculated:
  > test-plotCohortAttrition.R: * cohort_end_date: min, q25, median, q75, max
  > test-plotCohortAttrition.R: * cohort_start_date: min, q25, median, q75, max
  > test-plotCohortAttrition.R: ! Table is collected to memory as not all requested estimates are supported on the database side
  > test-plotCohortAttrition.R: > Start summary of data, at 2026-03-19 16:52:20.915232
  > test-plotCohortAttrition.R: v Summary finished, at 2026-03-19 16:52:21.072269
  > test-plotLargeScaleCharacteristics.R: i Summarising large scale characteristics 
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1)
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R:  - getting characteristics from table condition_occurrence (1 of 1) for time ...
  > test-plotLargeScaleCharacteristics.R: Formatting result
  > test-plotLargeScaleCharacteristics.R: v Summarising large scale characteristics
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 2/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to 0` -> `inf_to_0`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/3
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 2/3
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 3/3
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to 0` -> `inf_to_0`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCohortOverlap.R: Cohort table is empty: returning empty summarised result.
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 2/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to 0` -> `inf_to_0`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: i summarising cohort cohort_2
  > test-summariseCharacteristics.R: i summarising cohort cohort_3
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCohortOverlap.R: `result_id` is not present in result.
  > test-summariseCharacteristics.R: i adding tableIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCohortOverlap.R: `result_id` is not present in result.
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCohortOverlap.R: `result_id` is not present in result.
  > test-summariseCharacteristics.R: i summarising cohort cohort_2
  > test-summariseCohortOverlap.R: `result_id` is not present in result.
  > test-summariseCharacteristics.R: i summarising cohort cohort_3
  > test-summariseCohortOverlap.R: `result_id` is not present in result.
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCohortTiming.R: Cohort table is empty: returning empty summarised timing result.
  > test-summariseCohortTiming.R: i The following estimates will be calculated:
  > test-summariseCohortTiming.R: * days_between_cohort_entries: min, q25, median, q75, max, density
  > test-summariseCohortTiming.R: ! Table is collected to memory as not all requested estimates are supported on the database side
  > test-summariseCohortTiming.R: > Start summary of data, at 2026-03-19 16:54:51.030672
  > test-summariseCohortTiming.R: v Summary finished, at 2026-03-19 16:54:51.568077
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCohortTiming.R: i The following estimates will be calculated:
  > test-summariseCohortTiming.R: * days_between_cohort_entries: min, q25, median, q75, max
  > test-summariseCohortTiming.R: ! Table is collected to memory as not all requested estimates are supported on the database side
  > test-summariseCohortTiming.R: > Start summary of data, at 2026-03-19 16:55:02.65471
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 2/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to 0` -> `inf_to_0`
  > test-summariseCohortTiming.R: v Summary finished, at 2026-03-19 16:55:03.771298
  Saving _problems/test-summariseCohortTiming-63.R
  > test-utilities.R: `group` is not present in settings.
  > test-utilities.R: `group` is not present in settings.
  > test-summariseCharacteristics.R: i summarising data
  > test-utilities.R: `group` is not present in settings.
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to 0` -> `365_to_0`
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 2/2
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to 0` -> `inf_to_0`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding tableIntersectCount 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to -1` -> `inf_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding tableIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to -1` -> `inf_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding tableIntersectDate 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to -1` -> `inf_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding tableIntersectDays 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `1 to Inf` -> `1_to_inf`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort exposed
  > test-summariseCharacteristics.R: i summarising cohort unexposed
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectCount 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to -1` -> `inf_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to -1` -> `inf_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectDate 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-Inf to -1` -> `inf_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectDays 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `1 to Inf` -> `1_to_inf`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to -1` -> `365_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: i summarising cohort cohort_2
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  > test-summariseCharacteristics.R: i adding demographics columns
  > test-summariseCharacteristics.R: i adding cohortIntersectFlag 1/1
  > test-summariseCharacteristics.R: window names casted to snake_case:
  > test-summariseCharacteristics.R: * `-365 to -1` -> `365_to_1`
  > test-summariseCharacteristics.R: i summarising data
  > test-summariseCharacteristics.R: i summarising cohort cohort_1
  > test-summariseCharacteristics.R: i summarising cohort cohort_2
  > test-summariseCharacteristics.R: v summariseCharacteristics finished!
  [ FAIL 2 | WARN 17 | SKIP 24 | PASS 218 ]
  
  ══ Skipped tests (24) ══════════════════════════════════════════════════════════
  • On CRAN (22): 'test-benchmarkCohortCharacteristics.R:2:3',
    'test-plotCharacteristics.R:2:3', 'test-plotCharacteristics.R:176:3',
    'test-plotCohortCount.R:2:3', 'test-plotCohortOverlap.R:2:3',
    'test-plotCohortTiming.R:2:3', 'test-plotCohortTiming.R:100:3',
    'test-plotLargeScaleCharacteristics.R:3:3',
    'test-summariseCohortCount.R:2:3',
    'test-summariseLargeScaleCharacteristics.R:2:3', 'test-table.R:2:3',
    'test-tableCharacteristics.R:2:3', 'test-tableCharacteristics.R:124:3',
    'test-tableCohortAttrition.R:2:3', 'test-tableCohortCount.R:2:3',
    'test-tableCohortOverlap.R:2:3', 'test-tableCohortTiming.R:2:3',
    'test-tableLargeScaleCharacteristics.R:2:3',
    'test-tableLargeScaleCharacteristics.R:80:3',
    'test-summariseCharacteristics.R:1180:3',
    'test-summariseCharacteristics.R:1425:3',
    'test-summariseCharacteristics.R:1552:3'
  • empty test (2): 'test-plotLargeScaleCharacteristics.R:140:1',
    'test-summariseCohortTiming.R:114:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plotCohortTiming.R:245:3'): plotCohortTiming, density x axis ───
  Error in `dplyr::collect(x)`: Failed to collect lazy table.
  Caused by error in `dbSendQuery()`:
  ! INTERNAL Error: Failed to bind column reference "cohort_start_date_comparator" [24.0]: inequal types (DATE != INTEGER)
  
  Stack Trace:
  
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::Exception::ToJSON(duckdb::ExceptionType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x42) [0x7f7cbea27ef2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::InternalException::InternalException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x1f) [0x7f7cbea2d4ef]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::InternalException::InternalException<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)+0xac) [0x7f7cbee1276c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitReplace(duckdb::BoundColumnRefExpression&, duckdb::unique_ptr<duckdb::Expression, std::default_delete<duckdb::Expression>, true>*)+0x2aa) [0x7f7cbedf379a]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitExpression(duckdb::unique_ptr<duckdb::Expression, std::default_delete<duckdb::Expression>, true>*)+0x1c7) [0x7f7cbfa80d27]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::EnumerateExpressions(duckdb::LogicalOperator&, std::function<void (duckdb::unique_ptr<duckdb::Expression, std::default_delete<duckdb::Expression>, true>*)> const&)+0x6a9) [0x7f7cbfa809b9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorExpressions(duckdb::LogicalOperator&)+0x38) [0x7f7cbfa7f998]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x70c) [0x7f7cbedf328c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0xe6) [0x7f7cbedf2c66]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorChildren(duckdb::LogicalOperator&)+0x54) [0x7f7cbfa7f924]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x701) [0x7f7cbedf3281]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorChildren(duckdb::LogicalOperator&)+0x54) [0x7f7cbfa7f924]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x701) [0x7f7cbedf3281]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorChildren(duckdb::LogicalOperator&)+0x54) [0x7f7cbfa7f924]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x701) [0x7f7cbedf3281]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::PhysicalPlanGenerator::ResolveAndPlan(duckdb::unique_ptr<duckdb::LogicalOperator, std::default_delete<duckdb::LogicalOperator>, true>)+0x75) [0x7f7cbee09035]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::PhysicalPlanGenerator::Plan(duckdb::unique_ptr<duckdb::LogicalOperator, std::default_delete<duckdb::LogicalOperator>, true>)+0x2b) [0x7f7cbee08f5b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::CreatePreparedStatementInternal(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters)+0x561) [0x7f7cbf75fa61]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::CreatePreparedStatement(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters, duckdb::PreparedStatementMode)+0x486) [0x7f7cbf760856]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(+0x23e7942) [0x7f7cbf7e7942]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::RunFunctionInTransactionInternal(duckdb::ClientContextLock&, std::function<void ()> const&, bool)+0x89) [0x7f7cbf762f79]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::PrepareInternal(duckdb::ClientContextLock&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>)+0x186) [0x7f7cbf763316]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::Prepare(duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>)+0x104) [0x7f7cbf7636f4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::Connection::Prepare(duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>)+0x2e) [0x7f7cbf775ffe]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(rapi_prepare(cpp11::external_pointer<duckdb::ConnWrapper, &duckdb::ConnDeleter>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cpp11::environment)+0x650) [0x7f7cbddee5d0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(_duckdb_rapi_prepare+0x101) [0x7f7cbde5db31]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfb393) [0x7f7cdb6fb393]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14b3f0) [0x7f7cdb74b3f0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1344b4) [0x7f7cdb7344b4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x26e) [0x7f7cdb733a7e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1344b4) [0x7f7cdb7344b4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14d530) [0x7f7cdb74d530]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x138f12) [0x7f7cdb738f12]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1344b4) [0x7f7cdb7344b4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14d530) [0x7f7cdb74d530]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x138f12) [0x7f7cdb738f12]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rlang/libs/rlang.so(+0xb5e3) [0x7f7cc9a5f5e3]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xf9353) [0x7f7cdb6f9353]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13be2b) [0x7f7cdb73be2b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1563ae) [0x7f7cdb7563ae]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x15546b) [0x7f7cdb75546b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13b633) [0x7f7cdb73b633]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(R_execMethod+0x2cb) [0x7f7cdb753bdb]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/library/methods/libs/methods.so(+0x458b) [0x7f7cd868c58b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19ffaa) [0x7f7cdb79ffaa]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13b4ed) [0x7f7cdb73b4ed]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x134bd6) [0x7f7cdb734bd6]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19d4f2) [0x7f7cdb79d4f2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19ce15) [0x7f7cdb79ce15]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19da4e) [0x7f7cdb79da4e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13c0ac) [0x7f7cdb73c0ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x134bd6) [0x7f7cdb734bd6]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19d4f2) [0x7f7cdb79d4f2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19ce15) [0x7f7cdb79ce15]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19da4e) [0x7f7cdb79da4e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13c0ac) [0x7f7cdb73c0ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x134bd6) [0x7f7cdb734bd6]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19d4f2) [0x7f7cdb79d4f2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19cf19) [0x7f7cdb79cf19]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19da4e) [0x7f7cdb79da4e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13c0ac) [0x7f7cdb73c0ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1563ae) [0x7f7cdb7563ae]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x15546b) [0x7f7cdb75546b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x157818) [0x7f7cdb757818]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13be2b) [0x7f7cdb73be2b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x157bf8) [0x7f7cdb757bf8]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13be2b) [0x7f7cdb73be2b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  
  This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
  For more information, see https://duckdb.org/docs/stable/dev/internal_errors
  i Context: rapi_prepare
  i Error type: INTERNAL
  ── Error ('test-summariseCohortTiming.R:60:3'): summariseCohortTiming ──────────
  Error in `dplyr::collect(x)`: Failed to collect lazy table.
  Caused by error in `dbSendQuery()`:
  ! INTERNAL Error: Failed to bind column reference "cohort_start_date_comparator" [24.0]: inequal types (DATE != INTEGER)
  
  Stack Trace:
  
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::Exception::ToJSON(duckdb::ExceptionType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x42) [0x7f7cbea27ef2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::InternalException::InternalException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x1f) [0x7f7cbea2d4ef]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::InternalException::InternalException<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)+0xac) [0x7f7cbee1276c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitReplace(duckdb::BoundColumnRefExpression&, duckdb::unique_ptr<duckdb::Expression, std::default_delete<duckdb::Expression>, true>*)+0x2aa) [0x7f7cbedf379a]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitExpression(duckdb::unique_ptr<duckdb::Expression, std::default_delete<duckdb::Expression>, true>*)+0x1c7) [0x7f7cbfa80d27]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::EnumerateExpressions(duckdb::LogicalOperator&, std::function<void (duckdb::unique_ptr<duckdb::Expression, std::default_delete<duckdb::Expression>, true>*)> const&)+0x6a9) [0x7f7cbfa809b9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorExpressions(duckdb::LogicalOperator&)+0x38) [0x7f7cbfa7f998]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x70c) [0x7f7cbedf328c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0xe6) [0x7f7cbedf2c66]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorChildren(duckdb::LogicalOperator&)+0x54) [0x7f7cbfa7f924]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x701) [0x7f7cbedf3281]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorChildren(duckdb::LogicalOperator&)+0x54) [0x7f7cbfa7f924]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x701) [0x7f7cbedf3281]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::LogicalOperatorVisitor::VisitOperatorChildren(duckdb::LogicalOperator&)+0x54) [0x7f7cbfa7f924]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ColumnBindingResolver::VisitOperator(duckdb::LogicalOperator&)+0x701) [0x7f7cbedf3281]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::PhysicalPlanGenerator::ResolveAndPlan(duckdb::unique_ptr<duckdb::LogicalOperator, std::default_delete<duckdb::LogicalOperator>, true>)+0x75) [0x7f7cbee09035]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::PhysicalPlanGenerator::Plan(duckdb::unique_ptr<duckdb::LogicalOperator, std::default_delete<duckdb::LogicalOperator>, true>)+0x2b) [0x7f7cbee08f5b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::CreatePreparedStatementInternal(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters)+0x561) [0x7f7cbf75fa61]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::CreatePreparedStatement(duckdb::ClientContextLock&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>, duckdb::PendingQueryParameters, duckdb::PreparedStatementMode)+0x486) [0x7f7cbf760856]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(+0x23e7942) [0x7f7cbf7e7942]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::RunFunctionInTransactionInternal(duckdb::ClientContextLock&, std::function<void ()> const&, bool)+0x89) [0x7f7cbf762f79]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::PrepareInternal(duckdb::ClientContextLock&, duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>)+0x186) [0x7f7cbf763316]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::ClientContext::Prepare(duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>)+0x104) [0x7f7cbf7636f4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(duckdb::Connection::Prepare(duckdb::unique_ptr<duckdb::SQLStatement, std::default_delete<duckdb::SQLStatement>, true>)+0x2e) [0x7f7cbf775ffe]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(rapi_prepare(cpp11::external_pointer<duckdb::ConnWrapper, &duckdb::ConnDeleter>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cpp11::environment)+0x650) [0x7f7cbddee5d0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/duckdb/libs/duckdb.so(_duckdb_rapi_prepare+0x101) [0x7f7cbde5db31]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfb393) [0x7f7cdb6fb393]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14b3f0) [0x7f7cdb74b3f0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1344b4) [0x7f7cdb7344b4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x26e) [0x7f7cdb733a7e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1344b4) [0x7f7cdb7344b4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14d530) [0x7f7cdb74d530]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x138f12) [0x7f7cdb738f12]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1344b4) [0x7f7cdb7344b4]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14d530) [0x7f7cdb74d530]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x138f12) [0x7f7cdb738f12]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rlang/libs/rlang.so(+0xb5e3) [0x7f7cc9a5f5e3]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xf9353) [0x7f7cdb6f9353]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13be2b) [0x7f7cdb73be2b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1563ae) [0x7f7cdb7563ae]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x15546b) [0x7f7cdb75546b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13b633) [0x7f7cdb73b633]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(R_execMethod+0x2cb) [0x7f7cdb753bdb]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/library/methods/libs/methods.so(+0x458b) [0x7f7cd868c58b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19ffaa) [0x7f7cdb79ffaa]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13b4ed) [0x7f7cdb73b4ed]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x134bd6) [0x7f7cdb734bd6]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19d4f2) [0x7f7cdb79d4f2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19ce15) [0x7f7cdb79ce15]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19da4e) [0x7f7cdb79da4e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13c0ac) [0x7f7cdb73c0ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x134bd6) [0x7f7cdb734bd6]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19d4f2) [0x7f7cdb79d4f2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19ce15) [0x7f7cdb79ce15]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19da4e) [0x7f7cdb79da4e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13c0ac) [0x7f7cdb73c0ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x134bd6) [0x7f7cdb734bd6]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19d4f2) [0x7f7cdb79d4f2]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19cf19) [0x7f7cdb79cf19]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x19da4e) [0x7f7cdb79da4e]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13c0ac) [0x7f7cdb73c0ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1563ae) [0x7f7cdb7563ae]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x15546b) [0x7f7cdb75546b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x3d0) [0x7f7cdb733be0]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x157818) [0x7f7cdb757818]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13be2b) [0x7f7cdb73be2b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1502ac) [0x7f7cdb7502ac]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x5f6) [0x7f7cdb733e06]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x157bf8) [0x7f7cdb757bf8]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13be2b) [0x7f7cdb73be2b]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13422c) [0x7f7cdb73422c]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x1a5) [0x7f7cdb7339b5]
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x150da9) [0x7f7cdb750da9]
  
  This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
  For more information, see https://duckdb.org/docs/stable/dev/internal_errors
  i Context: rapi_prepare
  i Error type: INTERNAL
  
  [ FAIL 2 | WARN 17 | SKIP 24 | PASS 218 ]
  Error:
  ! Test failures.
  Execution halted