Skip to content

Commit dbc5de0

Browse files
authored
Merge branch 'main' into r/fix/querychat-app-cleanup
2 parents 70a7edf + 87d9650 commit dbc5de0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg-r/tests/testthat/helper-fixtures.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ local_sqlite_connection <- function(
5858
table_name = "test_table",
5959
env = parent.frame()
6060
) {
61+
if (testthat::is_testing()) {
62+
skip_if_not_installed("RSQLite")
63+
}
64+
6165
temp_db <- withr::local_tempfile(fileext = ".db", .local_envir = env)
6266
conn <- DBI::dbConnect(RSQLite::SQLite(), temp_db)
6367
withr::defer(DBI::dbDisconnect(conn), envir = env)

0 commit comments

Comments
 (0)