Package required but not available: ‘arrow’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Running examples in 'matric-Ex.R' failed
The error most likely occurred in:

> ### Name: sim_read
> ### Title: Read similarity matrix.
> ### Aliases: sim_read
> 
> ### ** Examples
> 
> suppressMessages(suppressWarnings(library(magrittr)))
> population <- tibble::tibble(
+   Metadata_group = sample(c("a", "b"), 4, replace = TRUE),
+   x = rnorm(4),
+   y = x + rnorm(4) / 100,
+   z = y + rnorm(4) / 1000
+ )
> tmpdir <- tempdir()
> tmpfile_prefix <- file.path(tmpdir, "test")
> tmpfile_parquet <- file.path(tmpdir, "test.pqrquet")
> sim_df <- sim_calculate(population, method = "pearson")
> sim_df %>% sim_write(tmpfile_prefix, file_format = "csv")
INFO [2024-01-22 08:30:36] Creating D:\temp\RtmpUL75Y3/test ...
INFO [2024-01-22 08:30:36] Writing D:\temp\RtmpUL75Y3/test/test.csv ...
INFO [2024-01-22 08:30:36] Writing D:\temp\RtmpUL75Y3/test/test_metadata.csv ...
INFO [2024-01-22 08:30:36] Writing D:\temp\RtmpUL75Y3/test/test_metadata.json ...
NULL
> sim_df_csv <- sim_read(tmpfile_prefix, file_format = "csv")
INFO [2024-01-22 08:30:36] Reading D:\temp\RtmpUL75Y3/test/test.csv ...
INFO [2024-01-22 08:30:36] Reading D:\temp\RtmpUL75Y3/test/test_metadata.csv ...
INFO [2024-01-22 08:30:36] Reading D:\temp\RtmpUL75Y3/test/test_metadata.json ...
> sim_df %>% sim_write(tmpfile_parquet)
INFO [2024-01-22 08:30:36] Writing D:\temp\RtmpUL75Y3/test.pqrquet ...
NULL
> sim_df_parquet1 <- sim_read(tmpfile_parquet)
> sim_df %>% arrow::write_parquet(tmpfile_parquet)
Error: IOError: Failed to open local file 'D:/temp/RtmpUL75Y3/test.pqrquet'. Detail: [Windows error 1224] Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar.
Execution halted
Running 'testthat.R' [67s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(matric)
  > 
  > test_check("matric")
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  [ FAIL 1 | WARN 66 | SKIP 0 | PASS 93 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-sim_read-write.R:100:3'): `sim_read` works ─────────────────────
  Error: IOError: Failed to open local file 'D:/temp/RtmpeY5UPA/test.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. ├─sim_df %>% arrow::write_parquet(tmp_parquet_file) at test-sim_read-write.R:100:3
   2. └─arrow::write_parquet(., tmp_parquet_file)
   3.   └─arrow:::make_output_stream(sink)
   4.     └─FileOutputStream$create(x)
   5.       └─arrow:::io___FileOutputStream__Open(clean_path_abs(path))
  
  [ FAIL 1 | WARN 66 | SKIP 0 | PASS 93 ]
  Error: Test failures
  Execution halted
Running examples in 'matric-Ex.R' failed
The error most likely occurred in:

> ### Name: sim_read
> ### Title: Read similarity matrix.
> ### Aliases: sim_read
> 
> ### ** Examples
> 
> suppressMessages(suppressWarnings(library(magrittr)))
> population <- tibble::tibble(
+   Metadata_group = sample(c("a", "b"), 4, replace = TRUE),
+   x = rnorm(4),
+   y = x + rnorm(4) / 100,
+   z = y + rnorm(4) / 1000
+ )
> tmpdir <- tempdir()
> tmpfile_prefix <- file.path(tmpdir, "test")
> tmpfile_parquet <- file.path(tmpdir, "test.pqrquet")
> sim_df <- sim_calculate(population, method = "pearson")
> sim_df %>% sim_write(tmpfile_prefix, file_format = "csv")
INFO [2024-01-21 07:03:16] Creating D:\temp\Rtmp4oCvLM/test ...
INFO [2024-01-21 07:03:16] Writing D:\temp\Rtmp4oCvLM/test/test.csv ...
INFO [2024-01-21 07:03:16] Writing D:\temp\Rtmp4oCvLM/test/test_metadata.csv ...
INFO [2024-01-21 07:03:16] Writing D:\temp\Rtmp4oCvLM/test/test_metadata.json ...
NULL
> sim_df_csv <- sim_read(tmpfile_prefix, file_format = "csv")
INFO [2024-01-21 07:03:16] Reading D:\temp\Rtmp4oCvLM/test/test.csv ...
INFO [2024-01-21 07:03:16] Reading D:\temp\Rtmp4oCvLM/test/test_metadata.csv ...
INFO [2024-01-21 07:03:16] Reading D:\temp\Rtmp4oCvLM/test/test_metadata.json ...
> sim_df %>% sim_write(tmpfile_parquet)
INFO [2024-01-21 07:03:16] Writing D:\temp\Rtmp4oCvLM/test.pqrquet ...
NULL
> sim_df_parquet1 <- sim_read(tmpfile_parquet)
> sim_df %>% arrow::write_parquet(tmpfile_parquet)
Error: IOError: Failed to open local file 'D:/temp/Rtmp4oCvLM/test.pqrquet'. Detail: [Windows error 1224] Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar.
Execution halted
Running 'testthat.R' [101s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(matric)
  > 
  > test_check("matric")
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  [ FAIL 1 | WARN 66 | SKIP 0 | PASS 93 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-sim_read-write.R:100:3'): `sim_read` works ─────────────────────
  Error: IOError: Failed to open local file 'D:/temp/RtmpsB74Xk/test.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. ├─sim_df %>% arrow::write_parquet(tmp_parquet_file) at test-sim_read-write.R:100:3
   2. └─arrow::write_parquet(., tmp_parquet_file)
   3.   └─arrow:::make_output_stream(sink)
   4.     └─FileOutputStream$create(x)
   5.       └─arrow:::io___FileOutputStream__Open(clean_path_abs(path))
  
  [ FAIL 1 | WARN 66 | SKIP 0 | PASS 93 ]
  Error: Test failures
  Execution halted
Running examples in 'matric-Ex.R' failed
The error most likely occurred in:

> ### Name: sim_read
> ### Title: Read similarity matrix.
> ### Aliases: sim_read
> 
> ### ** Examples
> 
> suppressMessages(suppressWarnings(library(magrittr)))
> population <- tibble::tibble(
+   Metadata_group = sample(c("a", "b"), 4, replace = TRUE),
+   x = rnorm(4),
+   y = x + rnorm(4) / 100,
+   z = y + rnorm(4) / 1000
+ )
> tmpdir <- tempdir()
> tmpfile_prefix <- file.path(tmpdir, "test")
> tmpfile_parquet <- file.path(tmpdir, "test.pqrquet")
> sim_df <- sim_calculate(population, method = "pearson")
> sim_df %>% sim_write(tmpfile_prefix, file_format = "csv")
INFO [2024-01-22 10:08:47] Creating D:\temp\RtmpWEvivw/test ...
INFO [2024-01-22 10:08:47] Writing D:\temp\RtmpWEvivw/test/test.csv ...
INFO [2024-01-22 10:08:47] Writing D:\temp\RtmpWEvivw/test/test_metadata.csv ...
INFO [2024-01-22 10:08:47] Writing D:\temp\RtmpWEvivw/test/test_metadata.json ...
NULL
> sim_df_csv <- sim_read(tmpfile_prefix, file_format = "csv")
INFO [2024-01-22 10:08:47] Reading D:\temp\RtmpWEvivw/test/test.csv ...
INFO [2024-01-22 10:08:47] Reading D:\temp\RtmpWEvivw/test/test_metadata.csv ...
INFO [2024-01-22 10:08:47] Reading D:\temp\RtmpWEvivw/test/test_metadata.json ...
> sim_df %>% sim_write(tmpfile_parquet)
INFO [2024-01-22 10:08:47] Writing D:\temp\RtmpWEvivw/test.pqrquet ...
NULL
> sim_df_parquet1 <- sim_read(tmpfile_parquet)
> sim_df %>% arrow::write_parquet(tmpfile_parquet)
Error: IOError: Failed to open local file 'D:/temp/RtmpWEvivw/test.pqrquet'. Detail: [Windows error 1224] Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar.
Execution halted
Running 'testthat.R' [97s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(matric)
  > 
  > test_check("matric")
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  [ FAIL 1 | WARN 66 | SKIP 0 | PASS 93 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-sim_read-write.R:100:3'): `sim_read` works ─────────────────────
  Error: IOError: Failed to open local file 'D:/temp/RtmpIrjc9w/test.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. ├─sim_df %>% arrow::write_parquet(tmp_parquet_file) at test-sim_read-write.R:100:3
   2. └─arrow::write_parquet(., tmp_parquet_file)
   3.   └─arrow:::make_output_stream(sink)
   4.     └─FileOutputStream$create(x)
   5.       └─arrow:::io___FileOutputStream__Open(clean_path_abs(path))
  
  [ FAIL 1 | WARN 66 | SKIP 0 | PASS 93 ]
  Error: Test failures
  Execution halted