Running examples in ‘duckplyr-Ex.R’ failed
The error most likely occurred in:

> ### Name: read_file_duckdb
> ### Title: Read Parquet, CSV, and other files using DuckDB
> ### Aliases: read_file_duckdb read_parquet_duckdb read_csv_duckdb
> ###   read_json_duckdb
> 
> ### ** Examples
> 
> # Create simple CSV file
> path <- tempfile("duckplyr_test_", fileext = ".csv")
> write.csv(data.frame(a = 1:3, b = letters[4:6]), path, row.names = FALSE)
> 
> # Reading is immediate
> df <- read_csv_duckdb(path)
> 
> # Names are always available
> names(df)
[1] "a" "b"
> 
> # Materialization upon access is turned off by default
> try(print(df$a))
[1] 1 2 3
> 
> # Materialize explicitly
> collect(df)$a
[1] 1 2 3
> 
> # Automatic materialization with prudence = "lavish"
> df <- read_csv_duckdb(path, prudence = "lavish")
> df$a
[1] 1 2 3
> 
> # Specify column types
> read_csv_duckdb(
+   path,
+   options = list(delim = ",", types = list(c("DOUBLE", "VARCHAR")))
+ )
# A duckplyr data frame: 2 variables
      a b    
  <dbl> <chr>
1     1 d    
2     2 e    
3     3 f    
> 
> # Create and read a simple JSON file
> path <- tempfile("duckplyr_test_", fileext = ".json")
> writeLines('[{"a": 1, "b": "x"}, {"a": 2, "b": "y"}]', path)
> 
> # Reading needs the json extension
> db_exec("INSTALL json")
> db_exec("LOAD json")

 *** caught segfault ***
address (nil), cause 'unknown'

Traceback:
 1: rapi_execute(stmt, arrow, integer64)
 2: withCallingHandlers(expr, condition = function(cnd) {    {        .__handler_frame__. <- TRUE        .__setup_frame__. <- frame        if (inherits(cnd, "message")) {            except <- c("warning", "error")        }        else if (inherits(cnd, "warning")) {            except <- "error"        }        else {            except <- ""        }    }    while (!is_null(cnd)) {        if (inherits(cnd, "error")) {            out <- handlers[[1L]](cnd)            if (!inherits(out, "rlang_zap"))                 throw(out)        }        inherit <- .subset2(.subset2(cnd, "rlang"), "inherit")        if (is_false(inherit)) {            return()        }        cnd <- .subset2(cnd, "parent")    }})
 3: doTryCatch(return(expr), name, parentenv, handler)
 4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 5: tryCatchList(expr, classes, parentenv, handlers)
 6: tryCatch(withCallingHandlers(expr, condition = function(cnd) {    {        .__handler_frame__. <- TRUE        .__setup_frame__. <- frame        if (inherits(cnd, "message")) {            except <- c("warning", "error")        }        else if (inherits(cnd, "warning")) {            except <- "error"        }        else {            except <- ""        }    }    while (!is_null(cnd)) {        if (inherits(cnd, "error")) {            out <- handlers[[1L]](cnd)            if (!inherits(out, "rlang_zap"))                 throw(out)        }        inherit <- .subset2(.subset2(cnd, "rlang"), "inherit")        if (is_false(inherit)) {            return()        }        cnd <- .subset2(cnd, "parent")    }}), stackOverflowError = handlers[[1L]])
 7: rlang::try_fetch(rapi_execute(stmt, arrow, integer64), error = function(e) {    rethrow_error_from_rapi(e, call)})
 8: rethrow_rapi_execute(res@stmt_lst$ref, res@arrow, res@connection@bigint ==     "integer64")
 9: duckdb_execute(res)
10: duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
11: .local(conn, statement, ...)
12: dbSendQuery(conn, statement, ...)
13: dbSendQuery(conn, statement, ...)
14: dbSendStatement(conn, statement, ...)
15: dbSendStatement(conn, statement, ...)
16: DBI::dbExecute(con, sql)
17: DBI::dbExecute(con, sql)
18: db_exec("LOAD json")
An irrecoverable exception occurred. R is aborting now ...