OHDSI / omock

https://ohdsi.github.io/omock/
Apache License 2.0
2 stars 1 forks source link

error creating a mock cdm #97

Closed catalamarti closed 1 month ago

catalamarti commented 1 month ago
  # Load mock database ----
  cdm <- omock::mockCdmFromTables(tables = list(observation_period = dplyr::tibble(
    observation_period_id = as.integer(1:8),
    person_id = c(1, 1, 1, 2, 2, 3, 3, 4) |> as.integer(),
    observation_period_start_date = as.Date(c(
      "2020-03-01", "2020-03-25", "2020-04-25", "2020-08-10", "2020-03-10",
      "2020-03-01", "2020-04-10", "2020-03-10"
    )),
    observation_period_end_date = as.Date(c(
      "2020-03-20", "2020-03-30", "2020-08-15", "2020-12-31", "2020-03-27",
      "2020-03-09", "2020-05-08", "2020-12-10"
    ))
  )))
#> Error in cli::cli_warn(`!` = "{nm} table will be overwritten", call = call): argument "message" is missing, with no default

Created on 2024-08-01 with reprex v2.1.1

catalamarti commented 1 month ago

cli::cli_warn(c("!" = "{nm} table will be overwritten", call = call): argument "message" is missi..."))