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

> ### Name: write_parquet
> ### Title: Write Parquet file with optional encryption
> ### Aliases: write_parquet
> 
> ### ** Examples
> 
> 
> data <- mtcars
> key <- "5bddd0ea4ab48ed5e33b1406180d68158aa255cf3f368bdd4744abc1a7909ead"
> iv <- "7D3EF463F4CCD81B11B6EC3230327B2D"
> 
> temp_dir <- tempdir()
> 
> rcdf::write_parquet(
+   data = data,
+   path = file.path(temp_dir, "mtcars.parquet"),
+   encryption_key = list(aes_key = key, aes_iv = iv)
+ )
Error in `duckdb_result()`:
! Invalid Error: Invalid Configuration Error: DuckDB requires a secure random engine to be loaded to enable secure crypto. Normally, this will be handled automatically by DuckDB by autoloading the `httpfs` Extension, but that seems to have failed. Please ensure the httpfs extension is loaded manually using `LOAD httpfs`.
ℹ Context: rapi_execute
ℹ Error type: INVALID
ℹ Raw message: Invalid Configuration Error: DuckDB requires a secure random engine to be loaded to enable secure crypto. Normally, this will be handled automatically by DuckDB by autoloading the `httpfs` Extension, but that seems to have failed. Please ensure the httpfs extension is loaded manually using `LOAD httpfs`.
Backtrace:
     ▆
  1. ├─rcdf::write_parquet(...)
  2. │ ├─DBI::dbExecute(conn = pq_conn, statement = pq_query)
  3. │ └─DBI::dbExecute(conn = pq_conn, statement = pq_query)
  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, convert_opts)
 19. ├─duckdb (local) `<fn>`(...)
 20. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
 21. │   └─rlang:::signal_abort(cnd, .file)
 22. │     └─base::signalCondition(cnd)
 23. └─rlang (local) `<fn>`(`<dckdb_rr>`)
 24.   └─handlers[[1L]](cnd)
 25.     └─duckdb:::rethrow_error_from_rapi(e, call)
 26.       └─rlang::abort(msg, call = call)
Execution halted