Running ‘test-all.R’
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("Rlibeemd")
  Loading required package: Rlibeemd
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  Error reported by gsl_linalg_solve_tridiag: tried to divide by zero
  1. 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
  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
  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
  2. 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
  ...
  
  
  3. 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.8)
  [1]  6.73 - 4.40 == 2.33
  [2]  7.57 - 4.19 == 3.38
  [3]  8.44 - 4.06 == 4.38
  [4]  9.34 - 3.65 == 5.69
  [5] 10.27 - 5.73 == 4.55
  [6] 11.24 - 5.56 == 5.67
  [7] 12.23 - 6.02 == 6.21
  [8] 13.25 - 6.95 == 6.30
  [9] 14.30 - 7.36 == 6.94
  ...
  
  
  4. 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
  
  
  5. 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
  
  
  6. 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
  
  
  7. 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
  
  
  8. 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
  ...
  
  
  9. 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: 262 SKIPPED: 0 FAILED: 9
  1. Failure: residual is close to the disturbed signal (@test-ceemdan.R#26) 
  2. Failure: sum of imfs equals to original series (@test-ceemdan.R#58) 
  3. Failure: residual is close to the disturbed signal (@test-eemd.R#28) 
  4. Failure: identical seeds give equal results (@test-eemd.R#39) 
  5. Failure: EMD returns the original series for short series (@test-emd.R#40) 
  6. Failure: EMD returns the original series for short series (@test-emd.R#40) 
  7. Failure: EMD returns the original series for short series (@test-emd.R#40) 
  8. Failure: sum of imfs equals to original series (@test-emd.R#54) 
  9. Failure: num_imfs = 1 returns residual which equals data (@test-emd.R#67) 
  
  Error: testthat unit tests failed
  Execution halted