Closed bastistician closed 1 year ago
── Failure ('test-clean.R:21'): tests for tsclean ────────────────────────────── sum(abs(tsclean(testseries) - rep(1:7, 5))) < 1e-14 is not TRUE `actual`: FALSE `expected`: TRUE
For me:
# Test for removing outliers in seasonal series testseries <- ts(rep(1:7, 5), frequency = 7) testseries[c(2, 4, 14)] <- 0 sum(abs(tsclean(testseries) - rep(1:7, 5))) #> [1] 1.24345e-14
The tolerance of this test should probably be increased to 1e-12, say.
Thanks. Fixed in https://github.com/robjhyndman/forecast/commit/4ce09bf404199fd46303c810a21c4b27ea14910c
For me:
The tolerance of this test should probably be increased to 1e-12, say.
sessionInfo()
``` R version 4.2.2 (2022-10-31) Platform: x86_64-pc-linux-musl (64-bit) Running under: Alpine Linux v3.17 Matrix products: default BLAS: /home/smeyer/QA/R-4.2.2/build/lib/libRblas.so LAPACK: /home/smeyer/QA/R-4.2.2/build/lib/libRlapack.so ```