Running ‘test-all.R’
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("Rlibeemd")
  Loading required package: Rlibeemd
  ── 1. Failure: series full of zeroes should produce only zeroes (@test-ceemdan.R
  all(imfs == 0) isn't true.
  
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  ── 2. Failure: residual is close to the disturbed signal (@test-ceemdan.R#26)  ─
  residual[11:90] not equal to x[11:90].
  80/80 mismatches (average diff: NaN)
  [1] NaN - 4.40 == NaN
  [2] NaN - 4.19 == NaN
  [3] NaN - 4.06 == NaN
  [4] NaN - 3.65 == NaN
  [5] NaN - 5.73 == NaN
  [6] NaN - 5.56 == NaN
  [7] NaN - 6.02 == NaN
  [8] NaN - 6.95 == NaN
  [9] NaN - 7.36 == NaN
  ...
  
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  ── 3. Failure: different seeds give different results (@test-ceemdan.R#31)  ────
  isTRUE(...) isn't false.
  
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  ── 4. Failure: sum of imfs equals to original series (@test-ceemdan.R#58)  ─────
  rowSums(ceemdan(x, threads = 1)) not equal to `x`.
  64/64 mismatches (average diff: NaN)
  [1] NaN - -1.174 == NaN
  [2] NaN - -0.156 == NaN
  [3] NaN - -1.919 == NaN
  [4] NaN - -0.195 == NaN
  [5] NaN - -2.592 == NaN
  [6] NaN -  1.314 == NaN
  [7] NaN - -0.636 == NaN
  [8] NaN - -0.430 == NaN
  [9] NaN - -0.169 == NaN
  ...
  
  ── 5. Failure: residual is close to the disturbed signal (@test-eemd.R#28)  ────
  residual[11:90] not equal to x[11:90].
  80/80 mismatches (average diff: 35.5)
  [1]  6.29 - 4.40 == 1.89
  [2]  7.14 - 4.19 == 2.95
  [3]  8.02 - 4.06 == 3.96
  [4]  8.94 - 3.65 == 5.28
  [5]  9.88 - 5.73 == 4.15
  [6] 10.85 - 5.56 == 5.28
  [7] 11.85 - 6.02 == 5.83
  [8] 12.88 - 6.95 == 5.93
  [9] 13.94 - 7.36 == 6.58
  ...
  
  ── 6. Failure: identical seeds give equal results (@test-eemd.R#39)  ───────────
  eemd(x, rng_seed = 1, threads = 1) not identical to eemd(x, rng_seed = 1, threads = 1).
  Objects equal but not identical
  
  ── 7. Failure: EMD returns the original series for short series (@test-emd.R#40)
  `x` not identical to c(imfs).
  1/1 mismatches
  [1] -0.581 - -1.16 == 0.581
  
  ── 8. Failure: EMD returns the original series for short series (@test-emd.R#40)
  `x` not identical to c(imfs).
  2/2 mismatches (average diff: 0.835)
  [1] -1.001 - -2.00 == 1.001
  [2] -0.668 - -1.34 == 0.668
  
  ── 9. Failure: EMD returns the original series for short series (@test-emd.R#40)
  `x` not identical to c(imfs).
  3/3 mismatches (average diff: 0.795)
  [1] 0.945 - 1.890 == -0.945
  [2] 0.434 - 0.867 == -0.434
  [3] 1.005 - 2.010 == -1.005
  
  ── 10. Failure: sum of imfs equals to original series (@test-emd.R#54)  ────────
  rowSums(emd(x)) not equal to `x`.
  64/64 mismatches (average diff: 0.856)
  [1]  1.628 -  0.8140 ==  0.8140
  [2]  1.831 -  0.9153 ==  0.9153
  [3] -0.344 - -0.1719 == -0.1719
  [4] -4.804 - -2.4022 == -2.4022
  [5]  1.592 -  0.7959 ==  0.7959
  [6]  4.338 -  2.1691 ==  2.1691
  [7]  0.117 -  0.0584 ==  0.0584
  [8] -2.710 - -1.3549 == -1.3549
  [9] -0.735 - -0.3676 == -0.3676
  ...
  
  ── 11. Failure: num_imfs = 1 returns residual which equals data (@test-emd.R#67)
  c(imfs) not identical to `x`.
  64/64 mismatches (average diff: 0.784)
  [1]  3.422 -  1.711 ==  1.711
  [2] -0.789 - -0.394 == -0.394
  [3] -4.643 - -2.321 == -2.321
  [4]  2.728 -  1.364 ==  1.364
  [5]  2.264 -  1.132 ==  1.132
  [6] -1.549 - -0.774 == -0.774
  [7] -2.821 - -1.410 == -1.410
  [8] -3.669 - -1.835 == -1.835
  [9] -0.538 - -0.269 == -0.269
  ...
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 289 SKIPPED: 0 FAILED: 11
  1. Failure: series full of zeroes should produce only zeroes (@test-ceemdan.R#18) 
  2. Failure: residual is close to the disturbed signal (@test-ceemdan.R#26) 
  3. Failure: different seeds give different results (@test-ceemdan.R#31) 
  4. Failure: sum of imfs equals to original series (@test-ceemdan.R#58) 
  5. Failure: residual is close to the disturbed signal (@test-eemd.R#28) 
  6. Failure: identical seeds give equal results (@test-eemd.R#39) 
  7. Failure: EMD returns the original series for short series (@test-emd.R#40) 
  8. Failure: EMD returns the original series for short series (@test-emd.R#40) 
  9. Failure: EMD returns the original series for short series (@test-emd.R#40) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted