Running 'spelling.R' [0s]
  Running 'testthat.R' [107s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(arkdb)
  > 
  > test_check("arkdb")
  [1] "Testing using backend duckdb_connection"
  [ FAIL 1 | WARN 7 | SKIP 7 | PASS 50 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • MonetDBLite cannot be loaded (2): 'test-arkdb.R:132:3',
    'test-local_db.R:24:3'
  • On CRAN (5): 'test-bulk-import.R:6:3', 'test-bulk-import.R:72:3',
    'test-errors.R:12:3', 'test-errors.R:34:3', 'test-errors.R:53:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-arkdb.R:337:3'): Warns when applying filter to multiple tables ──
  Error: IOError: Failed to open local file 'D:/temp/Rtmp2drl3W/nycflights/flights/part-00001.parquet'. Detail: [Windows error 1224] Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar.
  
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-arkdb.R:337:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─arkdb::ark(...)
    7.   └─arkdb:::ark_file(...)
    8.     └─arkdb:::keep_open(...)
    9.       └─streamable_table$write(data, con, omit_header = TRUE, filename = counter)
   10.         └─arrow::write_parquet(x, sink = path, ...)
   11.           └─arrow:::make_output_stream(sink)
   12.             └─FileOutputStream$create(x)
   13.               └─arrow:::io___FileOutputStream__Open(clean_path_abs(path))
  
  [ FAIL 1 | WARN 7 | SKIP 7 | PASS 50 ]
  Error: Test failures
  In addition: Warning messages:
  1: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  2: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  3: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  4: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  5: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  6: Connection is garbage-collected, use dbDisconnect() to avoid this. 
  7: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  8: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  9: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this. 
  Execution halted
  Warning message:
  Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this.