Running examples in ‘visOmopResults-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: filterSettings
> ### Title: Filter a <summarised_result> using the settings
> ### Aliases: filterSettings
> 
> ### ** Examples
> 
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> library(omopgenerics)

Attaching package: ‘omopgenerics’

The following objects are masked from ‘package:visOmopResults’:

    addSettings, additionalColumns, filterAdditional, filterGroup,
    filterSettings, filterStrata, groupColumns, pivotEstimates,
    settingsColumns, splitAdditional, splitAll, splitGroup,
    splitStrata, strataColumns, tidyColumns, uniteAdditional,
    uniteGroup, uniteStrata

The following object is masked from ‘package:stats’:

    filter

> 
> x <- tibble(
+   "result_id" = as.integer(c(1, 2)),
+   "cdm_name" = c("cprd", "eunomia"),
+   "group_name" = "sex",
+   "group_level" = "male",
+   "strata_name" = "sex",
+   "strata_level" = "male",
+   "variable_name" = "Age group",
+   "variable_level" = "10 to 50",
+   "estimate_name" = "count",
+   "estimate_type" = "numeric",
+   "estimate_value" = "5",
+   "additional_name" = "overall",
+   "additional_level" = "overall"
+ ) |>
+   newSummarisedResult(settings = tibble(
+     "result_id" = c(1, 2), "custom" = c("A", "B")
+   ))
`result_type`, `package_name`, and `package_version` added to settings.
Error in `newSummarisedResult()`:
! In result_id = 1: `sex` present in both group and strata.
In result_id = 2: `sex` present in both group and strata.
Backtrace:
    ▆
 1. └─omopgenerics::newSummarisedResult(...)
 2.   └─omopgenerics:::validateSummarisedResult(x)
 3.     └─omopgenerics:::validateResultSettings(attr(x, "settings"), call = call)
 4.       └─omopgenerics:::reportOverlap(...)
 5.         └─cli::cli_abort(message = message, call = call)
 6.           └─rlang::abort(...)
Execution halted