We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tempdir()
1 parent 8bb61a6 commit bd31e45Copy full SHA for bd31e45
R/relational-duckdb.R
@@ -65,8 +65,9 @@ duckplyr_macros <- c(
65
)
66
67
create_default_duckdb_connection <- function() {
68
- dbroot <- Sys.getenv("DUCKPLYR_TEMP_DIR", tempdir())
+ dbroot <- Sys.getenv("DUCKPLYR_TEMP_DIR", file.path(tempdir(), "duckplyr"))
69
dbdir <- tempfile("duckplyr", tmpdir = dbroot, fileext = ".duckdb")
70
+ dir.create(dbroot, recursive = TRUE, showWarnings = FALSE)
71
72
drv <- duckdb::duckdb(dbdir = dbdir)
73
con <- DBI::dbConnect(drv)
0 commit comments