Package: DrugExposureDiagnostics Check: tests New result: ERROR Running ‘testthat.R’ [268s/264s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(DrugExposureDiagnostics) > > test_check("DrugExposureDiagnostics") Attaching package: 'plotly' The following object is masked from 'package:ggplot2': last_plot The following object is masked from 'package:stats': filter The following object is masked from 'package:graphics': layout Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union population after earliestStartDate smaller than sample, sampling ignored i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:04:37.455574 v Summary finished, at 2025-09-16 01:04:38.497593 population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:05:03.91097 v Summary finished, at 2025-09-16 01:05:04.702064 population after earliestStartDate smaller than sample, sampling ignored i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:05:23.367678 v Summary finished, at 2025-09-16 01:05:24.020848 i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:05:26.131446 v Summary finished, at 2025-09-16 01:05:27.037397 Progress: getting descendant concepts of ingredient (1125315) used in database Progress: getting descendant concepts of ingredient Progress: adding drug strength info Progress: limiting to concepts in the db Progress: adding concept names Overall time taken: 0 minutes and 1 seconds Time taken: 0 minutes and 1 seconds Progress: getting drug records for ingredient Time taken: 0 minutes and 0 seconds Progress: get concepts used Time taken: 0 minutes and 0 seconds Progress: sampling drug records population after earliestStartDate smaller than sample, sampling ignored Time taken: 0 minutes and 0 seconds Progress: check drugsMissing Time taken: 0 minutes and 1 seconds Progress: check ExposureDuration Time taken: 0 minutes and 0 seconds Progress: check drugQuantity Time taken: 0 minutes and 0 seconds Finished i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:06:07.933712 v Summary finished, at 2025-09-16 01:06:09.181193 population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:06:59.594925 v Summary finished, at 2025-09-16 01:07:00.269974 population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored population after earliestStartDate smaller than sample, sampling ignored i The following estimates will be computed: * daily_dose: count_missing, percentage_missing, mean, sd, q05, q25, median, q75, q95, min, max ! Table is collected to memory as not all requested estimates are supported on the database side > Start summary of data, at 2025-09-16 01:07:58.046115 v Summary finished, at 2025-09-16 01:07:58.696312 Time taken: 0 minutes and 0 seconds testMessage [ FAIL 5 | WARN 170 | SKIP 5 | PASS 482 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • Skipping (1): 'test-shiny.R:2:3' • Sys.getenv("TESTDB_USER99") == "" is TRUE (1): 'test-SyntheaSqlServer.R:5:3' • does not work with latest omopgenerics (3): 'test-runBenchmark.R:2:3', 'test-runBenchmark.R:36:3', 'test-runBenchmark.R:47:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-checkTimeBetween.R:29:3'): check summary calculation overall ── result$minimum_time_between_days (`actual`) not identical to 59 (`expected`). `actual` is an integer vector (59) `expected` is a double vector (59) ── Failure ('test-checkTimeBetween.R:30:3'): check summary calculation overall ── result$maximum_time_between_days (`actual`) not identical to 671 (`expected`). `actual` is an integer vector (671) `expected` is a double vector (671) ── Failure ('test-checkTimeBetween.R:42:3'): check summary calculation by concept ── result$minimum_time_between_days (`actual`) not identical to c(59, 214) (`expected`). `actual` is an integer vector (59, 214) `expected` is a double vector (59, 214) ── Failure ('test-checkTimeBetween.R:43:3'): check summary calculation by concept ── result$maximum_time_between_days (`actual`) not identical to c(671, 214) (`expected`). `actual` is an integer vector (671, 214) `expected` is a double vector (671, 214) ── Failure ('test-executeChecks.R:437:3'): package version and name are included in the results ── c(...) (`actual`) not equal to names(result[["metadata"]]) (`expected`). actual[11:14] vs expected[11:15] "earliest_observation_period_start_date" "latest_observation_period_end_date" "snapshot_date" - "package_version" + "cdm_data_hash" + "package_version" [ FAIL 5 | WARN 170 | SKIP 5 | PASS 482 ] Error: Test failures Execution halted