if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE)
# \donttest{
withr::local_options("diseasystore.DiseasystoreEcdcRespiratoryViruses.pull" = FALSE)
conn_generator <- function(skip_backends = NULL) {
switch(
("SQLiteConnection" %in% skip_backends) + 1,
list(DBI::dbConnect(RSQLite::SQLite())), # SQLiteConnection not in skip_backends
list() # SQLiteConnection in skip_backends
)
}
test_diseasystore(
DiseasystoreEcdcRespiratoryViruses,
conn_generator,
data_files = "data/snapshots/2023-11-24_ILIARIRates.csv",
target_schema = "test_ds",
test_start_date = as.Date("2022-06-20"),
slice_ts = "2023-11-24"
)
# }
}
Run the code above in your browser using DataLab