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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mockIncidencePrevalenceRef
> ### Title: Generate example subset of the OMOP CDM for estimating incidence
> ###   and prevalence
> ### Aliases: mockIncidencePrevalenceRef
> 
> ### ** Examples
> 
> cdm <- mockIncidencePrevalenceRef(sampleSize = 100)
Error in `as.character()`:
! Can't convert `x` <dbplyr_table_ident> to <character>.
Backtrace:
     ▆
  1. ├─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 100)
  2. │ └─CDMConnector::cdm_from_con(...)
  3. │   └─CDMConnector::new_generated_cohort_set(...)
  4. │     ├─... %>% stringr::str_remove_all("[^A-Za-z0-9_]")
  5. │     ├─base::rev(...)
  6. │     ├─stringr::str_split(as.character(cohort_ref[[2]]$x), "\\.")
  7. │     │ └─stringr:::check_lengths(string, pattern)
  8. │     │   └─vctrs::vec_size_common(...)
  9. │     ├─base::as.character(cohort_ref[[2]]$x)
 10. │     └─vctrs:::as.character.vctrs_vctr(cohort_ref[[2]]$x)
 11. │       └─vctrs::vec_cast(x, character())
 12. ├─stringr::str_remove_all(., "[^A-Za-z0-9_]")
 13. │ └─stringr::str_replace_all(string, pattern, "")
 14. │   └─stringr:::check_lengths(string, pattern, replacement)
 15. │     └─vctrs::vec_size_common(...)
 16. └─vctrs (local) `<fn>`()
 17.   └─vctrs::vec_default_cast(...)
 18.     ├─base::withRestarts(...)
 19.     │ └─base (local) withOneRestart(expr, restarts[[1L]])
 20.     │   └─base (local) doWithOneRestart(return(expr), restart)
 21.     └─vctrs::stop_incompatible_cast(...)
 22.       └─vctrs::stop_incompatible_type(...)
 23.         └─vctrs:::stop_incompatible(...)
 24.           └─vctrs:::stop_vctrs(...)
 25.             └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
Execution halted
Warning: Connection is garbage-collected, use dbDisconnect() to avoid this.
Warning: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this.