tests/testthat/test-extension_path.R

skip_on_cran()
skip_on_os(c("windows"))

test_that("duckdb extensions are in a R specific directory", {
  con <- DBI::dbConnect(duckdb(config=list('allow_unsigned_extensions'='true')))
  on.exit(DBI::dbDisconnect(con, shutdown = TRUE))
  expect_error(dbExecute(con, "LOAD 'bogus'"),regexp = ".*R/duckdb/extensions/.*/bogus.duckdb_extension\" not found.")
})

Try the duckdb package in your browser

Any scripts or data that you put into this service are public.

duckdb documentation built on Oct. 30, 2024, 5:06 p.m.