Running 'testthat.R' [300s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(riemtan)
  
  Attaching package: 'riemtan'
  
  The following object is masked from 'package:stats':
  
      dexp
  
  > 
  > test_check("riemtan")
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 1.005227
  Computing Frechet mean: iteration 3, delta = 0.482638
  Computing Frechet mean: iteration 4, delta = 0.302466
  Computing Frechet mean: iteration 5, delta = 0.209602
  Computing Frechet mean: iteration 6, delta = 0.152756
  Computing Frechet mean: iteration 7, delta = 0.114610
  Computing Frechet mean: iteration 8, delta = 0.087574
  Computing Frechet mean: iteration 9, delta = 0.067734
  Computing Frechet mean: iteration 10, delta = 0.052834
  Computing Frechet mean: iteration 11, delta = 0.041461
  Computing Frechet mean: iteration 12, delta = 0.032682
  Computing Frechet mean: iteration 13, delta = 0.025847
  Computing Frechet mean: iteration 14, delta = 0.020493
  Computing Frechet mean: iteration 15, delta = 0.016279
  Computing Frechet mean: iteration 16, delta = 0.012951
  Computing Frechet mean: iteration 17, delta = 0.010316
  Computing Frechet mean: iteration 18, delta = 0.008224
  Computing Frechet mean: iteration 19, delta = 0.006561
  Computing Frechet mean: iteration 20, delta = 0.005237
  Computing Frechet mean: iteration 21, delta = 0.004182
  Computing Frechet mean: iteration 22, delta = 0.003341
  Computing Frechet mean: iteration 23, delta = 0.002670
  Computing Frechet mean: iteration 24, delta = 0.002134
  Computing Frechet mean: iteration 25, delta = 0.001706
  Computing Frechet mean: iteration 26, delta = 0.001364
  Computing Frechet mean: iteration 27, delta = 0.001091
  Computing Frechet mean: iteration 28, delta = 0.000872
  tangent images were null, so they will be computed
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 1.005227
  Computing Frechet mean: iteration 3, delta = 0.482638
  Computing Frechet mean: iteration 4, delta = 0.302466
  Computing Frechet mean: iteration 5, delta = 0.209602
  Computing Frechet mean: iteration 6, delta = 0.152756
  Computing Frechet mean: iteration 7, delta = 0.114610
  Computing Frechet mean: iteration 8, delta = 0.087574
  Computing Frechet mean: iteration 9, delta = 0.067734
  Computing Frechet mean: iteration 10, delta = 0.052834
  Computing Frechet mean: iteration 11, delta = 0.041461
  Computing Frechet mean: iteration 12, delta = 0.032682
  Computing Frechet mean: iteration 13, delta = 0.025847
  Computing Frechet mean: iteration 14, delta = 0.020493
  Computing Frechet mean: iteration 15, delta = 0.016279
  Computing Frechet mean: iteration 16, delta = 0.012951
  Computing Frechet mean: iteration 17, delta = 0.010316
  Computing Frechet mean: iteration 18, delta = 0.008224
  Computing Frechet mean: iteration 19, delta = 0.006561
  Computing Frechet mean: iteration 20, delta = 0.005237
  Computing Frechet mean: iteration 21, delta = 0.004182
  Computing Frechet mean: iteration 22, delta = 0.003341
  Computing Frechet mean: iteration 23, delta = 0.002670
  Computing Frechet mean: iteration 24, delta = 0.002134
  Computing Frechet mean: iteration 25, delta = 0.001706
  Computing Frechet mean: iteration 26, delta = 0.001364
  Computing Frechet mean: iteration 27, delta = 0.001091
  Computing Frechet mean: iteration 28, delta = 0.000872
  tangent images were null, so they will be computed
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 1.063907
  Computing Frechet mean: iteration 3, delta = 0.519579
  Computing Frechet mean: iteration 4, delta = 0.329677
  Computing Frechet mean: iteration 5, delta = 0.230554
  Computing Frechet mean: iteration 6, delta = 0.169173
  Computing Frechet mean: iteration 7, delta = 0.127579
  Computing Frechet mean: iteration 8, delta = 0.097864
  Computing Frechet mean: iteration 9, delta = 0.075920
  Computing Frechet mean: iteration 10, delta = 0.059356
  Computing Frechet mean: iteration 11, delta = 0.046663
  Computing Frechet mean: iteration 12, delta = 0.036833
  Computing Frechet mean: iteration 13, delta = 0.029162
  Computing Frechet mean: iteration 14, delta = 0.023142
  Computing Frechet mean: iteration 15, delta = 0.018396
  Computing Frechet mean: iteration 16, delta = 0.014643
  Computing Frechet mean: iteration 17, delta = 0.011668
  Computing Frechet mean: iteration 18, delta = 0.009305
  Computing Frechet mean: iteration 19, delta = 0.007426
  Computing Frechet mean: iteration 20, delta = 0.005929
  Computing Frechet mean: iteration 21, delta = 0.004736
  Computing Frechet mean: iteration 22, delta = 0.003784
  Computing Frechet mean: iteration 23, delta = 0.003024
  Computing Frechet mean: iteration 24, delta = 0.002417
  Computing Frechet mean: iteration 25, delta = 0.001932
  Computing Frechet mean: iteration 26, delta = 0.001545
  Computing Frechet mean: iteration 27, delta = 0.001236
  Computing Frechet mean: iteration 28, delta = 0.000988
  tangent images were null, so they will be computed
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.952594
  Computing Frechet mean: iteration 3, delta = 0.449561
  Computing Frechet mean: iteration 4, delta = 0.278101
  Computing Frechet mean: iteration 5, delta = 0.190824
  Computing Frechet mean: iteration 6, delta = 0.138024
  Computing Frechet mean: iteration 7, delta = 0.102955
  Computing Frechet mean: iteration 8, delta = 0.078314
  Computing Frechet mean: iteration 9, delta = 0.060359
  Computing Frechet mean: iteration 10, delta = 0.046952
  Computing Frechet mean: iteration 11, delta = 0.036766
  Computing Frechet mean: iteration 12, delta = 0.028931
  Computing Frechet mean: iteration 13, delta = 0.022849
  Computing Frechet mean: iteration 14, delta = 0.018097
  Computing Frechet mean: iteration 15, delta = 0.014363
  Computing Frechet mean: iteration 16, delta = 0.011419
  Computing Frechet mean: iteration 17, delta = 0.009091
  Computing Frechet mean: iteration 18, delta = 0.007244
  Computing Frechet mean: iteration 19, delta = 0.005777
  Computing Frechet mean: iteration 20, delta = 0.004610
  Computing Frechet mean: iteration 21, delta = 0.003681
  Computing Frechet mean: iteration 22, delta = 0.002940
  Computing Frechet mean: iteration 23, delta = 0.002349
  Computing Frechet mean: iteration 24, delta = 0.001877
  Computing Frechet mean: iteration 25, delta = 0.001501
  Computing Frechet mean: iteration 26, delta = 0.001200
  Computing Frechet mean: iteration 27, delta = 0.000959
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  Saving _problems/test-parallel-72.R
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = multisession, workers = 4
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 4
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  tangent images were null, so they will be computed
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.860334
  Computing Frechet mean: iteration 3, delta = 0.392146
  Computing Frechet mean: iteration 4, delta = 0.236097
  Computing Frechet mean: iteration 5, delta = 0.158608
  Computing Frechet mean: iteration 6, delta = 0.112834
  Computing Frechet mean: iteration 7, delta = 0.083076
  Computing Frechet mean: iteration 8, delta = 0.062547
  Computing Frechet mean: iteration 9, delta = 0.047818
  Computing Frechet mean: iteration 10, delta = 0.036958
  Computing Frechet mean: iteration 11, delta = 0.028793
  Computing Frechet mean: iteration 12, delta = 0.022566
  Computing Frechet mean: iteration 13, delta = 0.017765
  Computing Frechet mean: iteration 14, delta = 0.014034
  Computing Frechet mean: iteration 15, delta = 0.011116
  Computing Frechet mean: iteration 16, delta = 0.008824
  Parallel processing configured: strategy = multisession, workers = 2
  tangent images were null, so they will be computed
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.860334
  Computing Frechet mean: iteration 3, delta = 0.392146
  Computing Frechet mean: iteration 4, delta = 0.236097
  Computing Frechet mean: iteration 5, delta = 0.158608
  Computing Frechet mean: iteration 6, delta = 0.112834
  Computing Frechet mean: iteration 7, delta = 0.083076
  Computing Frechet mean: iteration 8, delta = 0.062547
  Computing Frechet mean: iteration 9, delta = 0.047818
  Computing Frechet mean: iteration 10, delta = 0.036958
  Computing Frechet mean: iteration 11, delta = 0.028793
  Computing Frechet mean: iteration 12, delta = 0.022566
  Computing Frechet mean: iteration 13, delta = 0.017765
  Computing Frechet mean: iteration 14, delta = 0.014034
  Computing Frechet mean: iteration 15, delta = 0.011116
  Computing Frechet mean: iteration 16, delta = 0.008824
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  The tzdb package is not installed. Timezones will not be available to Arrow compute functions.
  Writing 12 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75030b52c40...
    Written 10/12 matrices
    Written 12/12 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75030b52c40/metadata.json
  Done!
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  The tzdb package is not installed. Timezones will not be available to Arrow compute functions.
  The tzdb package is not installed. Timezones will not be available to Arrow compute functions.
  Parallel processing configured: strategy = sequential
  Writing 12 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7505db811fd...
    Written 10/12 matrices
    Written 12/12 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7505db811fd/metadata.json
  Done!
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Writing 20 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75061896986...
    Written 10/20 matrices
    Written 20/20 matrices
    Written 20/20 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75061896986/metadata.json
  Done!
  Parallel processing configured: strategy = multisession, workers = 2
  The tzdb package is not installed. Timezones will not be available to Arrow compute functions.
  The tzdb package is not installed. Timezones will not be available to Arrow compute functions.
  Parallel processing configured: strategy = sequential
  Writing 10 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750715e4463...
    Written 10/10 matrices
    Written 10/10 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750715e4463/metadata.json
  Done!
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multisession, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = multicore, workers = 2
  Parallel processing configured: strategy = sequential
  Parallel processing configured: strategy = sequential
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75013bf5647...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75013bf5647/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75033207683...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75033207683/metadata.json
  Done!
  Writing 5 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750741b53bf...
    Written 5/5 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750741b53bf/metadata.json
  Done!
  Writing 3 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750194f59e7...
    Written 3/3 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750194f59e7/metadata.json
  Done!
  Writing 3 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75061795c83...
    Written 3/3 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75061795c83/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7503f726399...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7503f726399/metadata.json
  Done!
  Writing 3 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75061f0fa3...
    Written 3/3 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75061f0fa3/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750371a61e1...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750371a61e1/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75011041180...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75011041180/metadata.json
  Done!
  Writing 5 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7505f3c3326...
    Written 5/5 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7505f3c3326/metadata.json
  Done!
  tangent images were null, so they will be computed
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.856119
  Computing Frechet mean: iteration 3, delta = 0.389587
  Computing Frechet mean: iteration 4, delta = 0.234260
  Computing Frechet mean: iteration 5, delta = 0.157219
  Computing Frechet mean: iteration 6, delta = 0.111760
  Computing Frechet mean: iteration 7, delta = 0.082235
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7504f5c1dce...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7504f5c1dce/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7505168f3f...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7505168f3f/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7502a15363d...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7502a15363d/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7502bc250b...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7502bc250b/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75041e62af8...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75041e62af8/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750b42593...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750b42593/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750680fa4...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750680fa4/metadata.json
  Done!
  Writing 10 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75074b2128c...
    Written 10/10 matrices
    Written 10/10 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75074b2128c/metadata.json
  Done!
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.860602
  Computing Frechet mean: iteration 3, delta = 0.392300
  Computing Frechet mean: iteration 4, delta = 0.236203
  Computing Frechet mean: iteration 5, delta = 0.158686
  Computing Frechet mean: iteration 6, delta = 0.112893
  Computing Frechet mean: iteration 7, delta = 0.083121
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75030de7d91...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75030de7d91/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75038ec1ce0...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75038ec1ce0/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75038ec1ce0...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75038ec1ce0/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75056ac603...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75056ac603/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75048cb1ca4...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75048cb1ca4/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75014fa4e4a...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75014fa4e4a/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750293f3090...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750293f3090/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75033c31af8...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75033c31af8/metadata.json
  Done!
  Validating directory: D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75033c31af8
    Expected: 1 matrices of dimension 3x3
    Contains subject IDs: 1 subjects
    Contains provenance metadata
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75019241be1...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f75019241be1/metadata.json
  Done!
  Writing 1 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7503783182...
    Written 1/1 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f7503783182/metadata.json
  Done!
  Writing 2 matrices to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750200d696...
    Written 2/2 matrices
  Metadata written to D:\temp\2026_03_22_01_50_00_17713\RtmpqCeDJP\file4f750200d696/metadata.json
  Done!
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.952594
  Computing Frechet mean: iteration 3, delta = 0.449561
  Computing Frechet mean: iteration 4, delta = 0.278101
  Computing Frechet mean: iteration 5, delta = 0.190824
  Computing Frechet mean: iteration 6, delta = 0.138024
  Computing Frechet mean: iteration 7, delta = 0.102955
  Computing Frechet mean: iteration 8, delta = 0.078314
  Computing Frechet mean: iteration 9, delta = 0.060359
  Computing Frechet mean: iteration 10, delta = 0.046952
  Computing Frechet mean: iteration 11, delta = 0.036766
  Computing Frechet mean: iteration 12, delta = 0.028931
  Computing Frechet mean: iteration 13, delta = 0.022849
  Computing Frechet mean: iteration 14, delta = 0.018097
  Computing Frechet mean: iteration 15, delta = 0.014363
  Computing Frechet mean: iteration 16, delta = 0.011419
  Computing Frechet mean: iteration 17, delta = 0.009091
  Computing Frechet mean: iteration 18, delta = 0.007244
  Computing Frechet mean: iteration 19, delta = 0.005777
  Computing Frechet mean: iteration 20, delta = 0.004610
  Computing Frechet mean: iteration 21, delta = 0.003681
  Computing Frechet mean: iteration 22, delta = 0.002940
  Computing Frechet mean: iteration 23, delta = 0.002349
  Computing Frechet mean: iteration 24, delta = 0.001877
  Computing Frechet mean: iteration 25, delta = 0.001501
  Computing Frechet mean: iteration 26, delta = 0.001200
  Computing Frechet mean: iteration 27, delta = 0.000959
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.977301
  Computing Frechet mean: iteration 3, delta = 0.468477
  Computing Frechet mean: iteration 4, delta = 0.294791
  Computing Frechet mean: iteration 5, delta = 0.206018
  Computing Frechet mean: iteration 6, delta = 0.151937
  Computing Frechet mean: iteration 7, delta = 0.115670
  Computing Frechet mean: iteration 8, delta = 0.089877
  Computing Frechet mean: iteration 9, delta = 0.070816
  Computing Frechet mean: iteration 10, delta = 0.056352
  Computing Frechet mean: iteration 11, delta = 0.045169
  Computing Frechet mean: iteration 12, delta = 0.036403
  Computing Frechet mean: iteration 13, delta = 0.029460
  Computing Frechet mean: iteration 14, delta = 0.023919
  Computing Frechet mean: iteration 15, delta = 0.019469
  Computing Frechet mean: iteration 16, delta = 0.015879
  Computing Frechet mean: iteration 17, delta = 0.012971
  Computing Frechet mean: iteration 18, delta = 0.010610
  Computing Frechet mean: iteration 19, delta = 0.008687
  Computing Frechet mean: iteration 20, delta = 0.007119
  Computing Frechet mean: iteration 21, delta = 0.005837
  Computing Frechet mean: iteration 22, delta = 0.004789
  Computing Frechet mean: iteration 23, delta = 0.003931
  Computing Frechet mean: iteration 24, delta = 0.003228
  Computing Frechet mean: iteration 25, delta = 0.002651
  Computing Frechet mean: iteration 26, delta = 0.002178
  Computing Frechet mean: iteration 27, delta = 0.001790
  Computing Frechet mean: iteration 28, delta = 0.001471
  Computing Frechet mean: iteration 29, delta = 0.001209
  Computing Frechet mean: iteration 30, delta = 0.000994
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.800000
  Computing Frechet mean: iteration 3, delta = 0.355556
  Computing Frechet mean: iteration 4, delta = 0.209836
  Computing Frechet mean: iteration 5, delta = 0.138753
  Computing Frechet mean: iteration 6, delta = 0.097477
  Computing Frechet mean: iteration 7, delta = 0.071056
  Computing Frechet mean: iteration 8, delta = 0.053073
  Computing Frechet mean: iteration 9, delta = 0.040319
  Computing Frechet mean: iteration 10, delta = 0.031005
  Computing Frechet mean: iteration 11, delta = 0.024058
  Computing Frechet mean: iteration 12, delta = 0.018794
  Computing Frechet mean: iteration 13, delta = 0.014758
  Computing Frechet mean: iteration 14, delta = 0.011635
  Computing Frechet mean: iteration 15, delta = 0.009201
  Computing Frechet mean: iteration 16, delta = 0.007293
  Computing Frechet mean: iteration 17, delta = 0.005793
  Computing Frechet mean: iteration 18, delta = 0.004607
  Computing Frechet mean: iteration 19, delta = 0.003669
  Computing Frechet mean: iteration 20, delta = 0.002924
  Computing Frechet mean: iteration 21, delta = 0.002333
  Computing Frechet mean: iteration 22, delta = 0.001862
  Computing Frechet mean: iteration 23, delta = 0.001487
  Computing Frechet mean: iteration 24, delta = 0.001188
  Computing Frechet mean: iteration 25, delta = 0.000949
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.945899
  Computing Frechet mean: iteration 3, delta = 0.443894
  Computing Frechet mean: iteration 4, delta = 0.273193
  Computing Frechet mean: iteration 5, delta = 0.186645
  Computing Frechet mean: iteration 6, delta = 0.134521
  Computing Frechet mean: iteration 7, delta = 0.100055
  Computing Frechet mean: iteration 8, delta = 0.075934
  Computing Frechet mean: iteration 9, delta = 0.058418
  Computing Frechet mean: iteration 10, delta = 0.045375
  Computing Frechet mean: iteration 11, delta = 0.035490
  Computing Frechet mean: iteration 12, delta = 0.027902
  Computing Frechet mean: iteration 13, delta = 0.022021
  Computing Frechet mean: iteration 14, delta = 0.017430
  Computing Frechet mean: iteration 15, delta = 0.013828
  Computing Frechet mean: iteration 16, delta = 0.010990
  Computing Frechet mean: iteration 17, delta = 0.008746
  Computing Frechet mean: iteration 18, delta = 0.006968
  Computing Frechet mean: iteration 19, delta = 0.005556
  Computing Frechet mean: iteration 20, delta = 0.004433
  Computing Frechet mean: iteration 21, delta = 0.003539
  Computing Frechet mean: iteration 22, delta = 0.002827
  Computing Frechet mean: iteration 23, delta = 0.002258
  Computing Frechet mean: iteration 24, delta = 0.001805
  Computing Frechet mean: iteration 25, delta = 0.001443
  Computing Frechet mean: iteration 26, delta = 0.001153
  Computing Frechet mean: iteration 27, delta = 0.000922
  Computing Frechet mean: iteration 1, delta = Inf
  Computing Frechet mean: iteration 2, delta = 0.887293
  Computing Frechet mean: iteration 3, delta = 0.405801
  Computing Frechet mean: iteration 4, delta = 0.244472
  Computing Frechet mean: iteration 5, delta = 0.164131
  Computing Frechet mean: iteration 6, delta = 0.116631
  Computing Frechet mean: iteration 7, delta = 0.085761
  Computing Frechet mean: iteration 8, delta = 0.064488
  Computing Frechet mean: iteration 9, delta = 0.049246
  Computing Frechet mean: iteration 10, delta = 0.038025
  Computing Frechet mean: iteration 11, delta = 0.029599
  Computing Frechet mean: iteration 12, delta = 0.023182
  Computing Frechet mean: iteration 13, delta = 0.018240
  Computing Frechet mean: iteration 14, delta = 0.014402
  Computing Frechet mean: iteration 15, delta = 0.011404
  Computing Frechet mean: iteration 16, delta = 0.009049
  Computing Frechet mean: iteration 17, delta = 0.007192
  Computing Frechet mean: iteration 18, delta = 0.005724
  Computing Frechet mean: iteration 19, delta = 0.004561
  Computing Frechet mean: iteration 20, delta = 0.003637
  Computing Frechet mean: iteration 21, delta = 0.002902
  Computing Frechet mean: iteration 22, delta = 0.002317
  Computing Frechet mean: iteration 23, delta = 0.001850
  Computing Frechet mean: iteration 24, delta = 0.001478
  Computing Frechet mean: iteration 25, delta = 0.001181
  Computing Frechet mean: iteration 26, delta = 0.000944
  [ FAIL 1 | WARN 19 | SKIP 0 | PASS 380 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-parallel.R:72:3'): should_parallelize() respects threshold and parallel state ──
  Error in `(function (workers, makeNode = makeNodePSOCK, port = c("auto", "random"), user = NULL, ..., autoStop = FALSE, tries = getOption2("parallelly.makeNodePSOCK.tries", 3L), delay = getOption2("parallelly.makeNodePSOCK.tries.delay", 15), validate = getOption2("parallelly.makeNodePSOCK.validate", TRUE), verbose = isTRUE(getOption("parallelly.debug")))  {     if (verbose) {         verbose_prefix <- "[local output] "         oopts <- options(parallelly.debug = verbose)         mdebugf_push("%smakeClusterPSOCK() ...", verbose_prefix)         on.exit({             mdebugf_pop("%smakeClusterPSOCK() ... done", verbose_prefix)             options(oopts)         })     }     localhostHostname <- getOption2("parallelly.localhost.hostname", "localhost")     if (is.numeric(workers)) {         if (length(workers) != 1L) {             stopf("When numeric, argument 'workers' must be a single value: %s", length(workers))         }         workers <- structure(as.integer(workers), class = class(workers))         if (is.na(workers) || workers < 1L) {             stopf("Number of 'workers' must be one or greater: %s", workers)         }         checkNumberOfLocalWorkers(workers)         workers <- rep(localhostHostname, times = workers)     }     if (!is.null(user)) {         stop_if_not(is.character(user), length(user) == 1L || length(user) == length(workers))         user <- rep(user, length.out = length(workers))     }     tries <- as.integer(tries)     stop_if_not(length(tries) == 1L, is.integer(tries), !is.na(tries), tries >= 1L)     delay <- as.numeric(delay)     stop_if_not(length(delay) == 1L, is.numeric(delay), !is.na(delay), delay >= 0)     validate <- as.logical(validate)     stop_if_not(length(validate) == 1L, is.logical(validate), !is.na(validate))     if (identical(makeNode, makeNodePSOCK)) {         free <- freeConnections()         if (validate)              free <- free - 1L         if (length(workers) > free) {             msg <- sprintf("Cannot create %d parallel PSOCK nodes. Each node needs one connection, but there are only %d connections left out of the maximum %d available on this R installation", length(workers), free, availableConnections())             if (getRversion() >= "4.4.0") {                 msg <- sprintf("%s. To increase this limit in R (>= 4.4.0), use command-line option '--max-connections=N' when launching R.", msg)             }             hint <- detectCoresHint(length(workers))             if (!is.null(hint))                  msg <- sprintf("%s. %s", msg, hint)             stopf(msg)         }     }     if (verbose) {         mdebugf("%sWorkers: [n = %d] %s", verbose_prefix, length(workers), hpaste(sQuote(workers)))     }     if (length(port) == 0L) {         stop("Argument 'port' must be of length one or more: 0")     }     port_org <- port     port <- freePort(port)     if (verbose)          mdebugf("%sBase port: %d", verbose_prefix, port)     if (is.na(port)) {         stop("Argument 'port' specifies non-available port(s): ", paste(port_org, collapse = ", "))     }     n <- length(workers)     nodeOptions <- vector("list", length = n)     if (verbose)          mdebugf("%sGetting setup options for %d cluster nodes ...", verbose_prefix, n)     for (ii in seq_len(n)) {         if (verbose)              mdebugf("%sNode #%d of %d ...", verbose_prefix, ii, n)         user_ii <- user[ii]         if (!is.null(user_ii) && user_ii == "*")              user_ii <- NULL         options <- makeNode(workers[[ii]], port = port, user = user_ii, ..., rank = ii, action = "options", verbose = verbose)         stop_if_not(inherits(options, "makeNodePSOCKOptions"))         nodeOptions[[ii]] <- options     }     if (verbose)          mdebugf("%sGetting setup options for %d cluster nodes ... done", verbose_prefix, n)     setup_strategy <- lapply(nodeOptions, FUN = function(options) {         value <- options$setup_strategy         if (is.null(value))              value <- "sequential"         stop_if_not(is.character(value), length(value) == 1L)         value     })     setup_strategy <- unlist(setup_strategy, use.names = FALSE)     is_parallel <- (setup_strategy == "parallel")     force_sequential <- FALSE     if (any(is_parallel)) {         if (verbose)              mdebugf("%sParallel setup requested for some PSOCK nodes", verbose_prefix)         if (!all(is_parallel)) {             if (verbose)                  mdebugf("%sParallel setup requested only for some PSOCK nodes; will revert to a sequential setup for all", verbose_prefix)             force_sequential <- TRUE         }         else {             affected <- affected_by_bug18119()             if (!is.na(affected) && affected) {                 if (verbose)                    mdebugf("%sParallel setup requested but not supported on this version of R: %s", verbose_prefix, getRversion())                 force_sequential <- TRUE             }         }     }     if (force_sequential) {         setup_strategy <- "sequential"         for (ii in which(is_parallel)) {             if (verbose)                  mdebugf("%sNode #%d of %d ...", verbose_prefix, ii, n)             user_ii <- user[ii]             if (!is.null(user_ii) && user_ii == "*")                  user_ii <- NULL             args <- list(workers[[ii]], port = port, user = user_ii, ..., rank = ii, action = "options", verbose = verbose)             args$setup_strategy <- "sequential"             options <- do.call(makeNode, args = args)             stop_if_not(inherits(options, "makeNodePSOCKOptions"))             nodeOptions[[ii]] <- options         }     }     stopifnot(length(nodeOptions) == n)     setup_strategy <- lapply(nodeOptions, FUN = function(options) {         value <- options$setup_strategy         if (is.null(value))              value <- "sequential"         stop_if_not(is.character(value), length(value) == 1L)         value     })     stopifnot(length(setup_strategy) == n)     setup_strategy <- unlist(setup_strategy, use.names = FALSE)     setup_strategy <- unique(setup_strategy)     stop_if_not(length(setup_strategy) == 1L)     cl <- vector("list", length = length(nodeOptions))     class(cl) <- c("RichSOCKcluster", "SOCKcluster", "cluster")     stopifnot(length(cl) == length(nodeOptions))     on.exit({         nodes <- vapply(cl, FUN = inherits, c("SOCKnode", "SOCK0node"), FUN.VALUE = FALSE)         stopCluster(cl[nodes])         cl <- NULL     }, add = TRUE)     if (setup_strategy == "parallel") {         if (getRversion() < "4.0.0") {             stopf("Parallel setup of PSOCK cluster nodes is not supported in R %s", getRversion())             socketAccept <- serverSocket <- function(...) NULL         }         sendCall <- importParallel("sendCall")         recvResult <- importParallel("recvResult")         options <- nodeOptions[[1]]         if (verbose) {             mdebugf("%sSetting up PSOCK nodes in parallel", verbose_prefix)             mstr(options)         }         port <- options[["port"]]         connectTimeout <- options[["connectTimeout"]]         timeout <- options[["timeout"]]         useXDR <- options[["useXDR"]]         nodeClass <- c("RichSOCKnode", if (useXDR) "SOCKnode" else "SOCK0node")         cmd <- options[["cmd"]]         if (verbose) {             mdebugf("%sSystem call to launch all workers:", verbose_prefix)             mdebugf("%s%s", verbose_prefix, cmd)         }         if (verbose)              mdebugf("%sStarting PSOCK main server", verbose_prefix)         socket <- serverSocket(port = port)         on.exit(if (!is.null(socket)) close(socket), add = TRUE)         assert_system_is_supported()         if (.Platform[["OS.type"]] == "windows") {             for (ii in seq_along(cl)) {                 system(cmd, wait = FALSE, input = "")             }         }         else {             cmd <- paste(rep(cmd, times = length(cl)), collapse = " & ")             system(cmd, wait = FALSE)         }         if (verbose)              mdebugf("%sWorkers launched", verbose_prefix)         ready <- 0L         pending <- list()         on.exit({             lapply(pending, FUN = function(x) close(x$con))             cl <- NULL         }, add = TRUE)         if (verbose)              mdebugf_push("%sWaiting for workers to connect back ...", verbose_prefix)         t0 <- Sys.time()         while (ready < length(cl)) {             if (verbose)                  mdebugf("%s%d workers out of %d ready", verbose_prefix, ready, length(cl))             cons <- lapply(pending, FUN = function(x) x$con)             if (difftime(Sys.time(), t0, units = "secs") > connectTimeout + 5) {                 failed <- length(cl) - ready                 stop(sprintf(ngettext(failed, "Cluster setup failed (connectTimeout=%.1f seconds). %d worker of %d failed to connect.", "Cluster setup failed (connectTimeout=%.1f seconds). %d of %d workers failed to connect."), connectTimeout + 5, failed, length(cl)))             }             a <- socketSelect(append(list(socket), cons), write = FALSE, timeout = connectTimeout)             canAccept <- a[1]             canReceive <- seq_along(pending)[a[-1]]             if (canAccept) {                 attr(localhostHostname, "localhost") <- TRUE                 con <- socketAccept(socket = socket, blocking = TRUE, open = "a+b", timeout = timeout)                 options$rank <- ready                 options$pidfile <- NULL                 scon <- structure(list(con = con, host = localhostHostname, rank = ready), options = options, calls = sys.calls(), class = nodeClass)                 res <- tryCatch({                   sendCall(scon, eval, list(quote(Sys.getpid())))                 }, error = identity)                 pending <- append(pending, list(scon))             }             for (scon in pending[canReceive]) {                 pid <- tryCatch({                   recvResult(scon)                 }, error = identity)                 if (is.integer(pid)) {                   ready <- ready + 1L                   cl[[ready]] <- scon                 }                 else {                   close(scon$con)                 }             }             if (length(canReceive) > 0L)                  pending <- pending[-canReceive]         }         if (verbose) {             mdebugf("%s%d workers out of %d ready", verbose_prefix, ready, length(cl))             mdebugf_pop("%sWaiting for workers to connect back ... done", verbose_prefix)         }     }     else if (setup_strategy == "sequential") {         retryPort <- getOption2("parallelly.makeNodePSOCK.tries.port", "same")         for (ii in seq_along(cl)) {             if (verbose) {                 mdebugf_push("%sCreating node #%d of %d ...", verbose_prefix, ii, n)                 mdebugf("%ssetting up node", verbose_prefix)             }             options <- nodeOptions[[ii]]             for (kk in 1:tries) {                 if (verbose) {                   mdebugf("%sattempt #%d of %d", verbose_prefix, kk, tries)                 }                 node <- tryCatch({                   makeNode(options, verbose = verbose)                 }, error = identity)                 if (!inherits(node, "PSOCKConnectionError"))                    break                 if (kk < tries) {                   if (verbose) {                     mdebug(conditionMessage(node))                     if (retryPort == "next") {                       options$port <- max(options$port + 1L, 65535L)                     }                     else if (retryPort == "available") {                       options$port <- freePort()                     }                     mdebugf("%swaiting %g seconds before trying again", verbose_prefix, delay)                   }                   Sys.sleep(delay)                 }             }             if (inherits(node, "error")) {                 ex <- node                 if (inherits(node, "PSOCKConnectionError")) {                   if (verbose) {                     mdebugf("%sFailed %d attempts with %g seconds delay", verbose_prefix, tries, delay)                   }                   ex$message <- sprintf("%s\n * Number of attempts: %d (%gs delay)", conditionMessage(ex), tries, delay)                 }                 else {                   ex$call <- sys.call()                 }                 stop(ex)             }             if (!is.null(node))                  cl[[ii]] <- node             stopifnot(length(cl) == n)             if (verbose) {                 mdebugf_pop("%sCreating node #%d of %d ... done", verbose_prefix, ii, n)             }         }     }     if (verbose) {         mdebugf("%sLaunching of %d workers completed", verbose_prefix, n)         mdebugf("%sNumber of nodes in cluster: %d", verbose_prefix, length(cl))     }     try(close(socket), silent = TRUE)     socket <- NULL     stopifnot(length(cl) == n)     if (validate) {         if (verbose) {             mdebugf_push("%sCollecting session information from %d workers", verbose_prefix, length(cl))         }         for (ii in seq_along(cl)) {             cl[ii] <- add_cluster_session_info(cl[ii])             if (verbose)                  mdebugf("%sWorker #%d of %d", verbose_prefix, ii, length(cl))         }         stopifnot(length(cl) == n)         if (verbose) {             mdebugf_pop("%sCollecting session information from %d workers", verbose_prefix, length(cl))         }     }     if (autoStop) {         cl <- autoStopCluster(cl)         stopifnot(length(cl) == n)         if (verbose)              mdebugf("%sAdded automatic stop of cluster on garbage collection", verbose_prefix)     }     stopifnot(length(cl) == n)     on.exit()     if (verbose) {         mdebugf_pop("%smakeClusterPSOCK() ... done", verbose_prefix)         options(oopts)     }     cl })(base::quote(2L), rscript_libs = base::quote(c("D:/temp/2026_03_22_01_50_00_17713/Rtmp8oNiSc/RLIBS_c2efc17517829", "D:/RCompile/recent/R-4.5.3/library")))`: Cluster setup failed (connectTimeout=125.0 seconds). 2 of 2 workers failed to connect.
  Backtrace:
       ▆
    1. ├─riemtan::set_parallel_plan("multisession", workers = 2) at test-parallel.R:72:3
    2. │ └─future::plan(future::multisession, workers = workers)
    3. │   └─future (local) plan_set(...)
    4. │     └─future:::plan_init(stack[[1]], debug = debug)
    5. │       └─future:::makeFutureBackend(evaluator, debug = debug)
    6. │         └─base::do.call(factory, args = args, envir = envir)
    7. └─future (local) `<fn>`(workers = 2)
    8.   └─future::ClusterFutureBackend(...)
    9.     └─clusterRegistry$startCluster(...)
   10.       └─future (local) makeCluster(workers, ...)
   11.         ├─base::do.call(makeClusterPSOCK, args = args, quote = TRUE)
   12.         └─parallelly (local) `<fn>`(base::quote(2L), rscript_libs = base::quote(`<chr>`))
  
  [ FAIL 1 | WARN 19 | SKIP 0 | PASS 380 ]
  Error:
  ! Test failures.
  Execution halted