Running ‘test_all.R’
Running the tests in ‘tests/test_all.R’ failed.
Complete output:
  > library("testthat")
  > test_check("bssm")
  Loading required package: bssm
  1. Failure: Test that bsm gives identical results with gssm (@test_bootstrap_filter.R#11) 
  bsf_gssm$logLik not equal to bsf_gssm_ref$logLik.
  1/1 mismatches
  [1] -25.2 - -27.9 == 2.67
  
  
  2. Failure: Test that bsm gives identical results with gssm (@test_bootstrap_filter.R#13) 
  bsf_gssm$alpha not equal to bsf_gssm_ref$alpha.
  200/200 mismatches (average diff: 3.87)
  [1] -1.942 -  0.288 == -2.230
  [2] -2.141 - -1.733 == -0.408
  [3]  1.985 -  0.244 ==  1.741
  [4]  0.524 - -0.156 ==  0.680
  [5]  0.154 - -2.377 ==  2.531
  [6]  9.559 - 10.554 == -0.995
  [7] 11.708 - 18.848 == -7.140
  [8]  9.342 -  3.281 ==  6.061
  [9]  6.534 -  7.133 == -0.600
  ...
  
  
  3. Failure: Test that poisson ng_bsm still works (@test_bootstrap_filter.R#28) -
  `bsf_poisson` not equal to `bsf_poisson_ref`.
  Component "at": Mean relative difference: 1.227593
  Component "att": Mean relative difference: 1.099935
  Component "Pt": Mean relative difference: 0.8001516
  Component "Ptt": Mean relative difference: 1.403774
  Component "weights": Mean relative difference: 1.486499
  Component "logLik": Mean relative difference: 0.4549154
  Component "alpha": Mean relative difference: 1.282644
  
  
  4. Failure: Test that binomial ng_bsm still works (@test_bootstrap_filter.R#37) 
  `bsf_binomial` not equal to `bsf_binomial_ref`.
  Component "at": Mean relative difference: 1.31139
  Component "att": Mean relative difference: 1.09673
  Component "Pt": Mean relative difference: 0.5565605
  Component "Ptt": Mean relative difference: 0.9101465
  Component "weights": Mean relative difference: 0.9383018
  Component "logLik": Mean relative difference: 0.616772
  Component "alpha": Mean relative difference: 1.485747
  
  
  5. Failure: Test that negative binomial ng_bsm still works (@test_bootstrap_filter.R#49) 
  `bsf_nbinomial` not equal to `bsf_nbinomial_ref`.
  Component "at": Mean relative difference: 1.326612
  Component "att": Mean relative difference: 1.032735
  Component "Pt": Mean relative difference: 0.3626592
  Component "Ptt": Mean relative difference: 0.5091402
  Component "weights": Mean relative difference: 0.3828169
  Component "logLik": Mean relative difference: 0.02755427
  Component "alpha": Mean relative difference: 1.2679
  
  
  6. Failure: Test that still svm works (@test_bootstrap_filter.R#60) ------------
  `bsf_svm` not equal to `bsf_svm_ref`.
  Component "at": Mean relative difference: 0.2932755
  Component "att": Mean relative difference: 0.2807583
  Component "Pt": Mean relative difference: 0.5684658
  Component "Ptt": Mean relative difference: 0.5366791
  Component "weights": Mean relative difference: 0.2285628
  Component "logLik": Mean relative difference: 0.005626524
  Component "alpha": Mean relative difference: 0.6016357
  
  
  7. Failure: Test that poisson ng_bsm give identical results with ngssm (@test_is.R#16) 
  sim_ng_bsm$weights not equal to `testvalues`.
  4/4 mismatches (average diff: 1.02)
  [1] 1.255 - 0.111 ==  1.144
  [2] 0.581 - 0.440 ==  0.141
  [3] 0.632 - 3.047 == -2.415
  [4] 1.292 - 1.655 == -0.363
  
  
  OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
  OMP: Hint: Consider unsetting KMP_ALL_THREADS and OMP_THREAD_LIMIT (if either is set).
  8. Failure: Test that svm still works (@test_is.R#27) --------------------------
  sim$weights not equal to `testvalues`.
  4/4 mismatches (average diff: 0.58)
  [1] 0.523 - 2.0860 == -1.5627
  [2] 0.567 - 0.2457 ==  0.3209
  [3] 0.158 - 0.0861 ==  0.0717
  [4] 0.228 - 0.5918 == -0.3638
  
  
  9. Failure: MCMC results for Gaussian model are correct (@test_mcmc.R#15) ------
  mcmc_bsm[-13] not equal to mcmc_bsm_ref[-13].
  Component "alpha": Mean relative difference: 0.3958746
  Component "theta": Mean relative difference: 0.2985069
  Component "S": Mean relative difference: 0.4637897
  Component "posterior": Mean relative difference: 0.02032471
  
  
  10. Failure: MCMC results for Poisson model are correct (@test_mcmc.R#28) ------
  mcmc_poisson[-13] not equal to mcmc_poisson_ref[-13].
  Component "alpha": Mean relative difference: 1.689177
  Component "theta": Mean relative difference: 0.2839028
  Component "counts": Mean relative difference: 1
  Component "acceptance_rate": Mean relative difference: 0.5
  Component "S": Mean relative difference: 0.06375835
  Component "posterior": Mean relative difference: 0.05052287
  
  
  11. Failure: MCMC results for SV model using IS-correction are correct (@test_mcmc.R#55) 
  mcmc_svm[-14] not equal to mcmc_svm_ref[-14].
  Component "alpha": Mean relative difference: 2.081952
  Component "theta": Mean relative difference: 0.7432435
  Component "weights": Mean relative difference: 0.3302355
  Component "counts": Mean relative difference: 0.6666667
  Component "S": Mean relative difference: 1.009997
  Component "posterior": Mean relative difference: 0.1535923
  
  
  testthat results ================================================================
  OK: 125 SKIPPED: 0 FAILED: 11
  1. Failure: Test that bsm gives identical results with gssm (@test_bootstrap_filter.R#11) 
  2. Failure: Test that bsm gives identical results with gssm (@test_bootstrap_filter.R#13) 
  3. Failure: Test that poisson ng_bsm still works (@test_bootstrap_filter.R#28) 
  4. Failure: Test that binomial ng_bsm still works (@test_bootstrap_filter.R#37) 
  5. Failure: Test that negative binomial ng_bsm still works (@test_bootstrap_filter.R#49) 
  6. Failure: Test that still svm works (@test_bootstrap_filter.R#60) 
  7. Failure: Test that poisson ng_bsm give identical results with ngssm (@test_is.R#16) 
  8. Failure: Test that svm still works (@test_is.R#27) 
  9. Failure: MCMC results for Gaussian model are correct (@test_mcmc.R#15) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted