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")
Error in `duckdb_result()`:
! rapi_execute: Failed to run query
Error: Invalid Input Error: Initialization function "json_init" from file "/data/gannet/ripley/.local/share/R/duckdb/extensions/v1.1.3/linux_amd64_gcc4/json.duckdb_extension" threw an exception: "Missing DB manager"
Backtrace:
     ▆
  1. ├─duckplyr::db_exec("LOAD json")
  2. │ ├─DBI::dbExecute(con, sql)
  3. │ └─DBI::dbExecute(con, sql)
  4. │   ├─DBI::dbSendStatement(conn, statement, ...)
  5. │   └─DBI::dbSendStatement(conn, statement, ...)
  6. │     ├─DBI::dbSendQuery(conn, statement, ...)
  7. │     └─duckdb::dbSendQuery(conn, statement, ...)
  8. │       └─duckdb (local) .local(conn, statement, ...)
  9. │         └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
 10. │           └─duckdb:::duckdb_execute(res)
 11. │             └─duckdb:::rethrow_rapi_execute(...)
 12. │               ├─rlang::try_fetch(...)
 13. │               │ ├─base::tryCatch(...)
 14. │               │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 15. │               │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 16. │               │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 17. │               │ └─base::withCallingHandlers(...)
 18. │               └─duckdb:::rapi_execute(stmt, arrow, integer64)
 19. └─base::.handleSimpleError(...)
 20.   └─rlang (local) h(simpleError(msg, call))
 21.     └─handlers[[1L]](cnd)
 22.       └─duckdb:::rethrow_error_from_rapi(e, call)
 23.         └─rlang::abort(msg, call = call)
Execution halted