robjhyndman / forecast

Forecasting Functions for Time Series and Linear Models
http://pkg.robjhyndman.com/forecast
1.1k stars 340 forks source link

test failure on Alpine Linux 3.17 (from test-clean.R:21) #928

Closed bastistician closed 1 year ago

bastistician commented 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.

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 ```
robjhyndman commented 1 year ago

Thanks. Fixed in https://github.com/robjhyndman/forecast/commit/4ce09bf404199fd46303c810a21c4b27ea14910c