- using R version 4.4.3 (2025-02-28)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘fluxfixer/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘fluxfixer’ version ‘1.0.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘fluxfixer’ can be installed ... [1s/1s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [1s/1s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [77s/49s] ERROR
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.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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/4s] OK
- checking PDF version of manual ... [2s/2s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '