R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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 D:\temp\Rtmp8iAONu\file17a84558344b4/GiBleed_5.3.zip [ FAIL 6 | WARN 0 | SKIP 19 | PASS 225 ] ══ Skipped tests (19) ══════════════════════════════════════════════════════════ • Capr cannot be loaded (1): 'test-db-generateCohortSet.R:77:3' • CirceR cannot be loaded (9): 'test-db-custom_cohort_creation.R:42:5', 'test-db-generateCohortSet.R:64:5', 'test-db-generateCohortSet.R:210:3', 'test-db-generateConceptCohortSet.R:303:5', 'test-db-generic-bind.R:22:5', 'test-db-newGeneratedCohortSet.R:126:3', 'test-db-newGeneratedCohortSet.R:179:3', 'test-db-recordCohortAttrition.R:133:3', 'test-write_prefix_cohort_generation_snowflake.R:3:3' • TreatmentPatterns cannot be loaded (1): 'test-db-generateCohortSet.R:127:3' • arrow cannot be loaded (1): 'test-local_cdm.R:3:3' • eunomia_is_available("empty_cdm") is not TRUE (1): 'test-Eunomia.R:42:3' • failing test (1): 'test-db-dateadd.R:126:3' • manual test (5): 'test-Eunomia.R:2:3', 'test-db-copy_cdm_to.R:62:3', 'test-db-generateCohortSet.R:108:3', 'test-db-generateCohortSet.R:243:3', 'test-db-write_schema_with_database.R:5:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-db-generateConceptCohortSet.R:323:5'): missing domains produce warning ── Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double) Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-db-generateConceptCohortSet.R:322:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─CDMConnector::generateConceptCohortSet(...) at test-db-generateConceptCohortSet.R:323:5 8. └─base::Ops.numeric_version(...) 9. └─base::as.numeric_version(e2) 10. └─base::numeric_version(x) 11. └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) ── Failure ('test-db-generateConceptCohortSet.R:343:5'): Regimen domain does not cause error ── Expected `{ ... }` to run without any errors. i Actually got a with text: invalid non-character version specification 'x' (type: double) ── Failure ('test-db-generateConceptCohortSet.R:349:3'): Regimen domain does not cause error ── cdm$cohort is not an S3 object ── Failure ('test-db-generateConceptCohortSet.R:367:2'): Eunomia ─────────────── Expected `... <- NULL` to run without any errors. i Actually got a with text: invalid non-character version specification 'x' (type: double) ── Error ('test-db-recordCohortAttrition.R:127:5'): duckdb - recordCohortAttrition ── Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double) Backtrace: ▆ 1. └─CDMConnector (local) test_record_cohort_attrition(con, cdm_schema, write_schema) at test-db-recordCohortAttrition.R:127:5 2. └─CDMConnector::generateConceptCohortSet(...) at test-db-recordCohortAttrition.R:9:3 3. └─base::Ops.numeric_version(...) 4. └─base::as.numeric_version(e2) 5. └─base::numeric_version(x) 6. └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) ── Error ('test-memory-issue.R:14:3'): memory leak does not happen ───────────── Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double) Backtrace: ▆ 1. └─CDMConnector::generateConceptCohortSet(...) at test-memory-issue.R:14:3 2. └─base::Ops.numeric_version(...) 3. └─base::as.numeric_version(e2) 4. └─base::numeric_version(x) 5. └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) [ FAIL 6 | WARN 0 | SKIP 19 | PASS 225 ] Error: Test failures In addition: There were 11 warnings (use warnings() to see them) Execution halted Warning message: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this.