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

190

Last 30 days

22923rd

388

Last 90 days

388

Last year

Trend: +5% (30d vs prior 30d)

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 (5 non-OK)
ERROR r-devel-macos-arm64

tests

Running ‘testthat.R’ [80s/50s]
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%
    |                                                                            
    |==                                                      
...[truncated]...
d
  --- 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-arm64

tests

Running ‘testthat.R’ [76s/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%
    |                                                                            
    |==                                                      
...[truncated]...
d
  --- 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’ [195s/205s]
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%
    |                                                                            
    |==                                                    
...[truncated]...
n 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
ERROR r-release-macos-arm64

tests

Running ‘testthat.R’ [75s/47s]
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%
    |                                                                            
    |==                                                      
...[truncated]...
d
  --- 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’ [194s/187s]
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%
    |                                                                            
    |==                                                    
...[truncated]...
n 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

Check History

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

tests

Running ‘testthat.R’ [81s/50s]
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 
...[truncated]...
_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-arm64

tests

Running ‘testthat.R’ [76s/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 
...[truncated]...
_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 additiona
...[truncated]...
uxfixer::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
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 
...[truncated]...
_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 additiona
...[truncated]...
uxfixer::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

Dependency Network

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

Version History

new 1.0.0 Mar 10, 2026