Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(metabodecon)
  > 
  > test_check("metabodecon")
  Starting 2 test processes.
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.02 Starting deconvolution of 1 spectrum using 1 worker
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.02 Starting deconvolution of sap_01
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.02 Removing water signal
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.02 Removing negative signals
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.02 Smoothing signals
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.02 Starting peak selection
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 Detected 24 peaks
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 Detected 24 peaks
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 Removing peaks with low scores
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 Removed 20 peaks
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 Initializing Lorentz curves
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 MSE at peak tiplet positions: 0.0000023352180995647374
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.03 Refining Lorentz Curves
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.04 MSE at peak tiplet positions: 0.0000000822818617368644
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.04 MSE at peak tiplet positions: 0.0000000163050712082374
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.04 MSE at peak tiplet positions: 0.0000000069366441759494
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.05 Formatting return object as decon1
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.05 Finished deconvolution of sap_01
  > test-generate_lorentz_curves.R: 2026-04-13 17:44:21.05 Finished deconvolution of 1 spectrum in 0.033 secs
  > test-as_decon.R: 2026-04-13 17:44:23.35 Starting deconvolution of sap_01
  > test-as_decon.R: 2026-04-13 17:44:23.35 Removing water signal
  > test-as_decon.R: 2026-04-13 17:44:23.35 Removing negative signals
  > test-as_decon.R: 2026-04-13 17:44:23.35 Smoothing signals
  > test-as_decon.R: 2026-04-13 17:44:23.35 Starting peak selection
  > test-as_decon.R: 2026-04-13 17:44:23.36 Detected 18 peaks
  > test-as_decon.R: 2026-04-13 17:44:23.36 Detected 18 peaks
  > test-as_decon.R: 2026-04-13 17:44:23.36 Removing peaks with low scores
  > test-as_decon.R: 2026-04-13 17:44:23.36 Removed 14 peaks
  > test-as_decon.R: 2026-04-13 17:44:23.36 Initializing Lorentz curves
  > test-as_decon.R: 2026-04-13 17:44:23.36 MSE at peak tiplet positions: 0.0000024963648931653179
  > test-as_decon.R: 2026-04-13 17:44:23.36 Refining Lorentz Curves
  > test-as_decon.R: 2026-04-13 17:44:23.36 MSE at peak tiplet positions: 0.0000001165616696457351
  > test-as_decon.R: 2026-04-13 17:44:23.37 MSE at peak tiplet positions: 0.0000000180892220732885
  > test-as_decon.R: 2026-04-13 17:44:23.37 MSE at peak tiplet positions: 0.0000000055685735596689
  > test-as_decon.R: 2026-04-13 17:44:23.37 Formatting return object as idecon
  > test-as_decon.R: 2026-04-13 17:44:23.37 Finished deconvolution of sap_01
  > test-as_decon.R: 2026-04-13 17:44:23.37 Starting deconvolution of sap_01 using Rust backend
  > test-deconvolute.R: 2026-04-13 17:44:24.22 Starting deconvolution of 1 spectrum using 1 worker
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Starting deconvolution of sap_01
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Removing water signal
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Removing negative signals
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Smoothing signals
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Starting peak selection
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Detected 24 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.23 Detected 24 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.23
  > test-deconvolute.R:  Removing peaks with low scores
  > test-deconvolute.R: 2026-04-13 17:44:24.24 Removed 20 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.24 Initializing Lorentz curves
  > test-deconvolute.R: 2026-04-13 17:44:24.24 MSE at peak tiplet positions: 0.0000023352180995647374
  > test-deconvolute.R: 2026-04-13 17:44:24.24 Refining Lorentz Curves
  > test-deconvolute.R: 2026-04-13 17:44:24.24 MSE at peak tiplet positions: 0.0000000822818617368644
  > test-deconvolute.R: 2026-04-13 17:44:24.25 MSE at peak tiplet positions: 0.0000000163050712082374
  > test-deconvolute.R: 2026-04-13 17:44:24.25 MSE at peak tiplet positions: 0.0000000069366441759494
  > test-deconvolute.R: 2026-04-13 17:44:24.26 Formatting return object as decon2
  > test-deconvolute.R: 2026-04-13 17:44:24.26 Finished deconvolution of sap_01
  > test-deconvolute.R: 2026-04-13 17:44:24.26 Finished deconvolution of 1 spectrum in 0.038 secs
  > test-deconvolute.R: 2026-04-13 17:44:24.29 Starting deconvolution of 2 spectra using 1 worker
  > test-deconvolute.R: 2026-04-13 17:44:24.29 Starting deconvolution of sim_01
  > test-deconvolute.R: 2026-04-13 17:44:24.30 Removing water signal
  > test-deconvolute.R: 2026-04-13 17:44:24.30 Removing negative signals
  > test-deconvolute.R: 2026-04-13 17:44:24.30 Smoothing signals
  > test-deconvolute.R: 2026-04-13 17:44:24.31 Starting peak selection
  > test-deconvolute.R: 2026-04-13 17:44:24.32 Detected 314 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.32 Detected 314 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.32 Removing peaks with low scores
  > test-deconvolute.R: 2026-04-13 17:44:24.32 Removed 287 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.32 Initializing Lorentz curves
  > test-deconvolute.R: 2026-04-13 17:44:24.32 MSE at peak tiplet positions: 4.0838805770844048836921
  > test-deconvolute.R: 2026-04-13 17:44:24.32 Refining Lorentz Curves
  > test-deconvolute.R: 2026-04-13 17:44:24.33 MSE at peak tiplet positions: 0.1609359876216345797140
  > test-deconvolute.R: 2026-04-13 17:44:24.33 MSE at peak tiplet positions: 0.0228015051613790278862
  > test-deconvolute.R: 2026-04-13 17:44:24.34 MSE at peak tiplet positions: 0.0071638016610617982066
  > test-deconvolute.R: 2026-04-13 17:44:24.34 Formatting return object as decon2
  > test-deconvolute.R: 2026-04-13 17:44:24.36 Finished deconvolution of sim_01
  > test-deconvolute.R: 2026-04-13 17:44:24.36 Starting deconvolution of sim_02
  > test-deconvolute.R: 2026-04-13 17:44:24.36 Removing water signal
  > test-deconvolute.R: 2026-04-13 17:44:24.36 Removing negative signals
  > test-deconvolute.R: 2026-04-13 17:44:24.36 Smoothing signals
  > test-deconvolute.R: 2026-04-13 17:44:24.38 Starting peak selection
  > test-deconvolute.R: 2026-04-13 17:44:24.38 Detected 316 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.38 Detected 316 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.39 Removing peaks with low scores
  > test-deconvolute.R: 2026-04-13 17:44:24.39 Removed 286 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.39 Initializing Lorentz curves
  > test-deconvolute.R: 2026-04-13 17:44:24.39 MSE at peak tiplet positions: 3.8338943428876719465848
  > test-deconvolute.R: 2026-04-13 17:44:24.39 Refining Lorentz Curves
  > test-deconvolute.R: 2026-04-13 17:44:24.40 MSE at peak tiplet positions: 0.1289481941626757499630
  > test-deconvolute.R: 2026-04-13 17:44:24.40 MSE at peak tiplet positions: 0.0135651899090413925741
  > test-deconvolute.R: 2026-04-13 17:44:24.41 MSE at peak tiplet positions: 0.0025556755331531126781
  > test-deconvolute.R: 2026-04-13 17:44:24.41 Formatting return object as decon2
  > test-deconvolute.R: 2026-04-13 17:44:24.43 Finished deconvolution of sim_02
  > test-deconvolute.R: 2026-04-13 17:44:24.43 Finished deconvolution of 2 spectra in 0.135 secs
  > test-deconvolute.R: 2026-04-13 17:44:24.51 Starting deconvolution of 1 spectrum using 1 worker
  > test-deconvolute.R: 2026-04-13 17:44:24.51 Starting deconvolution of sim_00
  > test-deconvolute.R: 2026-04-13 17:44:24.51 Removing water signal
  > test-deconvolute.R: 2026-04-13 17:44:24.51 Removing negative signals
  > test-deconvolute.R: 2026-04-13 17:44:24.51 Smoothing signals
  > test-deconvolute.R: 2026-04-13 17:44:24.52 Starting peak selection
  > test-deconvolute.R: 2026-04-13 17:44:24.52 Detected 63 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.52 Detected 63 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.52 Removing peaks with low scores
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Starting deconvolution of 1 spectrum using 1 worker
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Starting deconvolution of sim_00
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Removing water signal
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Removing negative signals
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Smoothing signals
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Starting peak selection
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Detected 63 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.54 Detected 63 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.55 Removing peaks with low scores
  > test-deconvolute.R: 2026-04-13 17:44:24.55 Not enough signals found in signal free region. This is a clear indication that the deconvolution parameters are not set correctly. Continuing anyways without dynamic peak filtering, because `force` is TRUE. Note that this might increase runtime drastically.
  > test-deconvolute.R: 2026-04-13 17:44:24.55 Removed 0 peaks
  > test-deconvolute.R: 2026-04-13 17:44:24.55 Initializing Lorentz curves
  > test-deconvolute.R: 2026-04-13 17:44:24.55 MSE at peak tiplet positions: 1.2776621160691832290723
  > test-deconvolute.R: 2026-04-13 17:44:24.55 Refining Lorentz Curves
  > test-deconvolute.R: 2026-04-13 17:44:24.56 MSE at peak tiplet positions: 0.0382680161940291765910
  > test-deconvolute.R: 2026-04-13 17:44:24.57 MSE at peak tiplet positions: 0.0106273721357572573792
  > test-deconvolute.R: 2026-04-13 17:44:24.57 MSE at peak tiplet positions: 0.0050118558740663400955
  > test-deconvolute.R: 2026-04-13 17:44:24.58 Formatting return object as decon2
  > test-deconvolute.R: 2026-04-13 17:44:24.58 Finished deconvolution of sim_00
  > test-deconvolute.R: 2026-04-13 17:44:24.58 Finished deconvolution of 1 spectrum in 0.047 secs
  > test-find_peaks_fast2.R: 2026-04-13 17:44:25.56 Starting peak selection
  > test-find_peaks_fast2.R: 2026-04-13 17:44:25.56 Detected 3 peaks
  > test-get_si_mat.R: 2026-04-13 17:44:25.97 Starting deconvolution of 2 spectra using 1 worker
  > test-get_si_mat.R: 2026-04-13 17:44:25.97 Starting deconvolution of sim_01
  > test-get_si_mat.R: 2026-04-13 17:44:25.97 Removing water signal
  > test-get_si_mat.R: 2026-04-13 17:44:25.97
  > test-get_si_mat.R:  Removing negative signals
  > test-get_si_mat.R: 2026-04-13 17:44:25.98 Smoothing signals
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 Starting peak selection
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 Detected 314 peaks
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 Detected 314 peaks
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 Removing peaks with low scores
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 Removed 287 peaks
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 Initializing Lorentz curves
  > test-get_si_mat.R: 2026-04-13 17:44:25.99 MSE at peak tiplet positions: 4.0838805770844048836921
  > test-get_si_mat.R: 2026-04-13 17:44:26.00 Refining Lorentz Curves
  > test-get_si_mat.R: 2026-04-13 17:44:26.00 MSE at peak tiplet positions: 0.1609359876216345797140
  > test-get_si_mat.R: 
  
  Error:
  ! testthat subprocess exited in file 'test-get_si_mat.R'.
  Caused by error:
  ! R session crashed with exit code -1073741819
  Backtrace:
       ▆
    1. └─testthat::test_check("metabodecon")
    2.   └─testthat::test_dir(...)
    3.     └─testthat:::test_files(...)
    4.       └─testthat:::test_files_parallel(...)
    5.         ├─withr::with_dir(...)
    6.         │ └─base::force(code)
    7.         ├─testthat::with_reporter(...)
    8.         │ └─base::tryCatch(...)
    9.         │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.         │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─testthat:::parallel_event_loop_chunky(queue, reporters, ".")
   13.           └─queue$poll(Inf)
   14.             └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted