Skip to content

fluxfixer

Advanced Framework for Sap Flow Data Post-Process

v1.0.0 · Feb 2, 2026 · MIT + file LICENSE

Description

Provides a flexible framework for post-processing thermal dissipation sap flow data using statistical methods and machine learning. This framework includes anomaly correction, outlier removal, gap-filling, trend removal, signal damping correction, and sap flux density calculation. The functions in this package can also apply to other time series with various artifacts.

Downloads

167

Last 30 days

19973rd

167

Last 90 days

167

Last year

CRAN Check Status

5 ERROR
9 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 ERROR
r-oldrel-macos-x86_64 ERROR
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 ERROR
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
ERROR r-devel-macos-arm64

tests

  Running ‘testthat.R’ [81s/51s]
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(fluxfixer)
  > 
  > test_check("fluxfixer")
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the ED method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the ED method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the DR method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the DR method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1155032912, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1157711388, Hyperparameter set: [3, 5, 0.1]
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.116118315, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1164037447, Hyperparameter set: [3, 5, 0.1]
  --- Optimal hyperparameter set: [2, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1176580164, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.1187078861, Hyperparameter set: [3, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Saving _problems/test-remove_statistical_outlier-32.R
  Z-score outlier detection started
  --- 5 Z-score outliers were detected
  --- 1 Z-score outlier was detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending was not applied
  Time series retrieval finished
  *** Fluxfixer started running ***
  Manual error value removal was not applied
  Absolute limits test finished
  Short-term drift correction finished
  High frequency noise filtering was not applied
  Z-score outlier detection started
  --- 4 Z-score outliers were detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0738704162, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.0728236193, Hyperparameter set: [3, 5, 0.1]
  --- MSE: 0.0722613642, Hyperparameter set: [4, 5, 0.1]
  --- MSE: 0.0723258816, Hyperparameter set: [5, 5, 0.1]
  --- MSE: 0.0727737792, Hyperparameter set: [6, 5, 0.1]
  --- Optimal hyperparameter set: [4, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Reference value definition started
  --- Reference average of target time series: 11.4773826234913
  --- Reference standard deviation of target time series: 1.66431731873025
  Reference value definition finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0321570222, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.0323715708, Hyperparameter set: [3, 5, 1]
  --- MSE: 0.0327464067, Hyperparameter set: [4, 5, 1]
  --- MSE: 0.0327651185, Hyperparameter set: [5, 5, 1]
  --- MSE: 0.0332510679, Hyperparameter set: [6, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending finished
  Time series retrieval finished
  Quality-control flag determination finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  Fd calculation process started
  --- Heartwood correction was not applied
  --- Fd calculation by the SP method finished
  Fd calculation process finished
  *** Fluxfixer finished running successfully ***
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-remove_statistical_outlier.R:32:3'): modifying short-term drifts works ──
  Expected `abs(corrected[101] - 1)` < 0.1.
  Actual comparison: 1000.0 >= 0.1
  Difference: 999.9 >= 0
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted
OK r-devel-windows-x86_64

*


            
ERROR r-oldrel-macos-arm64

tests

  Running ‘testthat.R’ [77s/48s]
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(fluxfixer)
  > 
  > test_check("fluxfixer")
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the ED method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the ED method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the DR method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the DR method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1155032912, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1157711388, Hyperparameter set: [3, 5, 0.1]
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.116118315, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1164037447, Hyperparameter set: [3, 5, 0.1]
  --- Optimal hyperparameter set: [2, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1176580164, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.1187078861, Hyperparameter set: [3, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Saving _problems/test-remove_statistical_outlier-32.R
  Z-score outlier detection started
  --- 5 Z-score outliers were detected
  --- 1 Z-score outlier was detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending was not applied
  Time series retrieval finished
  *** Fluxfixer started running ***
  Manual error value removal was not applied
  Absolute limits test finished
  Short-term drift correction finished
  High frequency noise filtering was not applied
  Z-score outlier detection started
  --- 4 Z-score outliers were detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0738599585, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.0728341783, Hyperparameter set: [3, 5, 0.1]
  --- MSE: 0.0722721358, Hyperparameter set: [4, 5, 0.1]
  --- MSE: 0.0723118997, Hyperparameter set: [5, 5, 0.1]
  --- MSE: 0.0727282818, Hyperparameter set: [6, 5, 0.1]
  --- Optimal hyperparameter set: [4, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Reference value definition started
  --- Reference average of target time series: 11.4773826234913
  --- Reference standard deviation of target time series: 1.66431731873025
  Reference value definition finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0321590219, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.0319488318, Hyperparameter set: [3, 5, 1]
  --- MSE: 0.0322191353, Hyperparameter set: [4, 5, 1]
  --- MSE: 0.0324191707, Hyperparameter set: [5, 5, 1]
  --- MSE: 0.032595063, Hyperparameter set: [6, 5, 1]
  --- Optimal hyperparameter set: [3, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending finished
  Time series retrieval finished
  Quality-control flag determination finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  Fd calculation process started
  --- Heartwood correction was not applied
  --- Fd calculation by the SP method finished
  Fd calculation process finished
  *** Fluxfixer finished running successfully ***
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-remove_statistical_outlier.R:32:3'): modifying short-term drifts works ──
  Expected `abs(corrected[101] - 1)` < 0.1.
  Actual comparison: 1000.0 >= 0.1
  Difference: 999.9 >= 0
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-macos-x86_64

tests

  Running ‘testthat.R’ [193s/165s]
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(fluxfixer)
  > 
  > test_check("fluxfixer")
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the ED method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the ED method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the DR method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the DR method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1155032912, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1157711388, Hyperparameter set: [3, 5, 0.1]
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.116118315, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1164037447, Hyperparameter set: [3, 5, 0.1]
  --- Optimal hyperparameter set: [2, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1176580164, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.1187078861, Hyperparameter set: [3, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Saving _problems/test-remove_statistical_outlier-30.R
  Z-score outlier detection started
  --- 5 Z-score outliers were detected
  --- 1 Z-score outlier was detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending was not applied
  Time series retrieval finished
  *** Fluxfixer started running ***
  Manual error value removal was not applied
  Absolute limits test finished
  Short-term drift correction finished
  High frequency noise filtering was not applied
  Z-score outlier detection started
  --- 4 Z-score outliers were detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0738723153, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.0728156744, Hyperparameter set: [3, 5, 0.1]
  --- MSE: 0.0722560085, Hyperparameter set: [4, 5, 0.1]
  --- MSE: 0.0722657316, Hyperparameter set: [5, 5, 0.1]
  --- MSE: 0.072790208, Hyperparameter set: [6, 5, 0.1]
  --- Optimal hyperparameter set: [4, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Reference value definition started
  --- Reference average of target time series: 11.4773826234913
  --- Reference standard deviation of target time series: 1.66431731873025
  Reference value definition finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0320510997, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.0322984728, Hyperparameter set: [3, 5, 1]
  --- MSE: 0.0323055008, Hyperparameter set: [4, 5, 1]
  --- MSE: 0.0325841009, Hyperparameter set: [5, 5, 1]
  --- MSE: 0.0330064573, Hyperparameter set: [6, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending finished
  Time series retrieval finished
  Quality-control flag determination finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  Fd calculation process started
  --- Heartwood correction was not applied
  --- Fd calculation by the SP method finished
  Fd calculation process finished
  *** Fluxfixer finished running successfully ***
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-remove_statistical_outlier.R:28:3'): modifying short-term drifts works ──
  Error in `data.frame(time = vctr_time, dT = vctr_target, dT_mod = vctr_target)`: arguments imply differing number of rows: 299, 300
  Backtrace:
      ▆
   1. └─fluxfixer::modify_short_drift(...) at test-remove_statistical_outlier.R:28:3
   2.   └─base::data.frame(time = vctr_time, dT = vctr_target, dT_mod = vctr_target)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
ERROR r-release-macos-arm64

tests

  Running ‘testthat.R’ [77s/49s]
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(fluxfixer)
  > 
  > test_check("fluxfixer")
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the ED method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the ED method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the DR method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the DR method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1155032912, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1157711388, Hyperparameter set: [3, 5, 0.1]
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.116118315, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1164037447, Hyperparameter set: [3, 5, 0.1]
  --- Optimal hyperparameter set: [2, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1176580164, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.1187078861, Hyperparameter set: [3, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Saving _problems/test-remove_statistical_outlier-32.R
  Z-score outlier detection started
  --- 5 Z-score outliers were detected
  --- 1 Z-score outlier was detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending was not applied
  Time series retrieval finished
  *** Fluxfixer started running ***
  Manual error value removal was not applied
  Absolute limits test finished
  Short-term drift correction finished
  High frequency noise filtering was not applied
  Z-score outlier detection started
  --- 4 Z-score outliers were detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0738704162, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.0728236193, Hyperparameter set: [3, 5, 0.1]
  --- MSE: 0.0722613642, Hyperparameter set: [4, 5, 0.1]
  --- MSE: 0.0723258816, Hyperparameter set: [5, 5, 0.1]
  --- MSE: 0.0727737792, Hyperparameter set: [6, 5, 0.1]
  --- Optimal hyperparameter set: [4, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Reference value definition started
  --- Reference average of target time series: 11.4773826234913
  --- Reference standard deviation of target time series: 1.66431731873025
  Reference value definition finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0321570222, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.0323715708, Hyperparameter set: [3, 5, 1]
  --- MSE: 0.0327464067, Hyperparameter set: [4, 5, 1]
  --- MSE: 0.0327651185, Hyperparameter set: [5, 5, 1]
  --- MSE: 0.0332510679, Hyperparameter set: [6, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending finished
  Time series retrieval finished
  Quality-control flag determination finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  Fd calculation process started
  --- Heartwood correction was not applied
  --- Fd calculation by the SP method finished
  Fd calculation process finished
  *** Fluxfixer finished running successfully ***
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-remove_statistical_outlier.R:32:3'): modifying short-term drifts works ──
  Expected `abs(corrected[101] - 1)` < 0.1.
  Actual comparison: 1000.0 >= 0.1
  Difference: 999.9 >= 0
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-macos-x86_64

tests

  Running ‘testthat.R’ [196s/169s]
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(fluxfixer)
  > 
  > test_check("fluxfixer")
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the ED method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the ED method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the DR method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the DR method finished
  --- dTmax calculation by the PD method started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD method finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax calculation by the PD and ED methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the PD and ED methods finished
  --- dTmax calculation by the MW and DR methods started
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |=====                                                                 |   7%
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |=========                                                             |  13%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  37%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==============================                                        |  43%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |========================================                              |  57%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |============================================                          |  63%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  77%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |=================================================================     |  93%
    |                                                                            
    |====================================================================  |  97%
    |                                                                            
    |======================================================================| 100%
  --- dTmax calculation by the MW and DR methods finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1155032912, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1157711388, Hyperparameter set: [3, 5, 0.1]
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.116118315, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.1164037447, Hyperparameter set: [3, 5, 0.1]
  --- Optimal hyperparameter set: [2, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.1176580164, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.1187078861, Hyperparameter set: [3, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Saving _problems/test-remove_statistical_outlier-30.R
  Z-score outlier detection started
  --- 5 Z-score outliers were detected
  --- 1 Z-score outlier was detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending was not applied
  Time series retrieval finished
  *** Fluxfixer started running ***
  Manual error value removal was not applied
  Absolute limits test finished
  Short-term drift correction finished
  High frequency noise filtering was not applied
  Z-score outlier detection started
  --- 4 Z-score outliers were detected
  --- No Z-score outlier was detected
  Z-score outlier detection finished
  Random forest outlier detection started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0738723153, Hyperparameter set: [2, 5, 0.1]
  --- MSE: 0.0728156744, Hyperparameter set: [3, 5, 0.1]
  --- MSE: 0.0722560085, Hyperparameter set: [4, 5, 0.1]
  --- MSE: 0.0722657316, Hyperparameter set: [5, 5, 0.1]
  --- MSE: 0.072790208, Hyperparameter set: [6, 5, 0.1]
  --- Optimal hyperparameter set: [4, 5, 0.1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest outlier detection finished
  Reference value definition started
  --- Reference average of target time series: 11.4773826234913
  --- Reference standard deviation of target time series: 1.66431731873025
  Reference value definition finished
  Random forest-based gap-filling started
  --- Hyperparameter optimization using grid search started
  --- MSE: Mean square error for out-of-bag data
  --- Hyperparameter set: [m_try, min_nodesize, subsample]
  --- MSE: 0.0320510997, Hyperparameter set: [2, 5, 1]
  --- MSE: 0.0322984728, Hyperparameter set: [3, 5, 1]
  --- MSE: 0.0323055008, Hyperparameter set: [4, 5, 1]
  --- MSE: 0.0325841009, Hyperparameter set: [5, 5, 1]
  --- MSE: 0.0330064573, Hyperparameter set: [6, 5, 1]
  --- Optimal hyperparameter set: [2, 5, 1]
  --- Hyperparameter optimization using grid search finished
  --- Random forest construction started
  --- Random forest construction finished
  Random forest-based gap-filling finished
  Time series retrieval started
  --- Signal damping correction was not applied
  --- Detrending finished
  Time series retrieval finished
  Quality-control flag determination finished
  Zero-flow condition estimation started
  --- dTmax calculation by the SP method started
  --- dTmax calculation by the SP method finished
  --- dTmax time series aggregation started
  --- dTmax time series aggregation finished
  Zero-flow condition estimation finished
  Fd calculation process started
  --- Heartwood correction was not applied
  --- Fd calculation by the SP method finished
  Fd calculation process finished
  *** Fluxfixer finished running successfully ***
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-remove_statistical_outlier.R:28:3'): modifying short-term drifts works ──
  Error in `data.frame(time = vctr_time, dT = vctr_target, dT_mod = vctr_target)`: arguments imply differing number of rows: 299, 300
  Backtrace:
      ▆
   1. └─fluxfixer::modify_short_drift(...) at test-remove_statistical_outlier.R:28:3
   2.   └─base::data.frame(time = vctr_time, dT = vctr_target, dT_mod = vctr_target)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted
OK r-release-windows-x86_64

*


            

Check History

ERROR 9 OK · 0 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-macos-arm64

tests

  Running ‘testthat.R’ [81s/51s]
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(
ERROR r-release-macos-arm64

tests

  Running ‘testthat.R’ [77s/49s]
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(
ERROR r-release-macos-x86_64

tests

  Running ‘testthat.R’ [196s/169s]
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)
  > librar
ERROR r-oldrel-macos-arm64

tests

  Running ‘testthat.R’ [77s/48s]
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(
ERROR r-oldrel-macos-x86_64

tests

  Running ‘testthat.R’ [193s/165s]
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)
  > librar

Dependency Network

Dependencies Reverse dependencies dplyr gsignal lubridate magrittr ranger rlang tidyr tidyselect xts zoo fluxfixer

Version History

new 1.0.0 Mar 9, 2026