Running ‘testthat.R’ [195s/240s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > testthat::test_that("on attach messages", {
  +   expect_message(library(magi))
  + })
  Test passed 🌈
  > 
  > test_check("magi")
  t = 1; acceptance rate = 0; log-posterior value = 96.5295; theta =   0.2000   0.2000   3.0000
  t = 101; acceptance rate = 0.68; log-posterior value = -111.076; theta =   0.1958   0.2256   2.9741
  t = 1; acceptance rate = 0; log-posterior value = 96.5295; theta =   0.2000   0.2000   3.0000
  t = 101; acceptance rate = 0.82; log-posterior value = -96.1765; theta =   0.2014   0.2393   2.9890
  phi = 
     2.2396   0.6578
     1.6332   2.9407
  
  thetaInit = 
     0.2429
     0.2159
     2.6842
  
  t = 1; acceptance rate = 0.5; log-posterior value = -5088.82; theta =   0.0914   0.5230   2.2903
  phi = 
     2.2400   0.6500
     1.6400   2.9300
  
  thetaInit = 
     0.2431
     0.2157
     2.6789
  
  t = 1; acceptance rate = 0.5; log-posterior value = -6268.13; theta =   0.0902   0.5183   2.2269
  phi = 
     2.2396   0.6578
     1.6332   2.9407
  
  thetaInit = 
     0.2429
     0.2159
     2.6842
  
  t = 1; acceptance rate = 0.5; log-posterior value = -5526.1; theta =   0.1196   0.4699   2.1851
  t = 1; acceptance rate = 0; log-posterior value = 7.50032; theta =   0.1510   0.8508   2.2131
  t = 1; acceptance rate = 0; log-posterior value = 7.14994; theta =   0.1462   0.8735   2.1585
  t = 1; acceptance rate = 0; log-posterior value = 6.33745; theta =   0.1398   0.8825   2.2129
  phi = 
     2.2396   0.6578
     1.6332   2.9407
  
  thetaInit = 
     0.2429
     0.2159
     2.6842
  
  t = 1; acceptance rate = 0.5; log-posterior value = -5840.27; theta =   0.1095   0.4801   2.2394
  t = 101; acceptance rate = 0.9; log-posterior value = -138.222; theta =   0.1350   0.7946   2.3796
  t = 1; acceptance rate = 0.5; log-posterior value = -66.5889; theta =   0.1338   0.8789   2.3129
  t = 101; acceptance rate = 0.89; log-posterior value = -151.623; theta =   0.1047   0.9135   2.2040
  t = 1; acceptance rate = 0; log-posterior value = 6.08133; theta =   0.0819   0.8748   2.2950
  t = 101; acceptance rate = 0.76; log-posterior value = -163.011; theta =   0.0835   0.9092   2.2261
  t = 1; acceptance rate = 0.5; log-posterior value = -65.3067; theta =   0.1023   0.8947   2.1725
  t = 101; acceptance rate = 0.94; log-posterior value = -144.052; theta =   0.0890   0.8687   2.2332
  [1] 100.0000000   0.8600000   1.7805214   0.6459524   0.2784685
  
   === mile stone ===> processed 0% of MCMC iterations
  
   === mile stone ===> processed 10% of MCMC iterations
  
   === mile stone ===> processed 20% of MCMC iterations
  
   === mile stone ===> processed 30% of MCMC iterations
  
   === mile stone ===> processed 40% of MCMC iterations
  
   === mile stone ===> processed 50% of MCMC iterations
  
   === mile stone ===> processed 60% of MCMC iterations
  
   === mile stone ===> processed 70% of MCMC iterations
  
   === mile stone ===> processed 80% of MCMC iterations
  
   === mile stone ===> processed 90% of MCMC iterations
  Parallel tempering finished:
  	Out of 10000 iterations, 482 swap is performed, 
  swap rate is 0.0482
  Chain 1 acceptance rate = 0.9218
  Chain 2 acceptance rate = 0.8993
  Chain 3 acceptance rate = 0.8926
  Chain 4 acceptance rate = 0.8739
  Chain 5 acceptance rate = 0.8375
  Chain 6 acceptance rate = 0.796
  Chain 7 acceptance rate = 0.7265
  Chain 8 acceptance rate = 0.5702
  
  ========================
  Swap between chain 1 and chain 2:
  	total swap is 94, acceptance number = 69, acceptance rate = 0.734043
  Swap between chain 2 and chain 3:
  	total swap is 53, acceptance number = 46, acceptance rate = 0.867925
  Swap between chain 3 and chain 4:
  	total swap is 50, acceptance number = 36, acceptance rate = 0.72
  Swap between chain 4 and chain 5:
  	total swap is 67, acceptance number = 47, acceptance rate = 0.701493
  Swap between chain 5 and chain 6:
  	total swap is 58, acceptance number = 36, acceptance rate = 0.62069
  Swap between chain 6 and chain 7:
  	total swap is 67, acceptance number = 34, acceptance rate = 0.507463
  Swap between chain 7 and chain 8:
  	total swap is 93, acceptance number = 24, acceptance rate = 0.258065
  
   === mile stone ===> processed 0% of MCMC iterations
  
   === mile stone ===> processed 10% of MCMC iterations
  
   === mile stone ===> processed 20% of MCMC iterations
  
   === mile stone ===> processed 30% of MCMC iterations
  
   === mile stone ===> processed 40% of MCMC iterations
  
   === mile stone ===> processed 50% of MCMC iterations
  
   === mile stone ===> processed 60% of MCMC iterations
  
   === mile stone ===> processed 70% of MCMC iterations
  
   === mile stone ===> processed 80% of MCMC iterations
  
   === mile stone ===> processed 90% of MCMC iterations
  Parallel tempering finished:
  	Out of 300 iterations, 162 swap is performed, 
  swap rate is 0.54
  Chain 1 acceptance rate = 0
  Chain 2 acceptance rate = 0
  Chain 3 acceptance rate = 0
  Chain 4 acceptance rate = 0
  Chain 5 acceptance rate = 0.00666667
  Chain 6 acceptance rate = 0.163333
  Chain 7 acceptance rate = 0.5
  Chain 8 acceptance rate = 0.583333
  
  ========================
  Swap between chain 1 and chain 2:
  	total swap is 20, acceptance number = 20, acceptance rate = 1
  Swap between chain 2 and chain 3:
  	total swap is 16, acceptance number = 16, acceptance rate = 1
  Swap between chain 3 and chain 4:
  	total swap is 23, acceptance number = 23, acceptance rate = 1
  Swap between chain 4 and chain 5:
  	total swap is 21, acceptance number = 21, acceptance rate = 1
  Swap between chain 5 and chain 6:
  	total swap is 31, acceptance number = 20, acceptance rate = 0.645161
  Swap between chain 6 and chain 7:
  	total swap is 19, acceptance number = 2, acceptance rate = 0.105263
  Swap between chain 7 and chain 8:
  	total swap is 32, acceptance number = 9, acceptance rate = 0.28125
  [1] 100.0000000   0.5900000   0.2021407   0.2153647   2.9716137
  [1] 200.0000000   0.7600000   0.2062475   0.2423755   2.9471763
  [1] 300.0000000   0.7400000   0.1926811   0.1871427   2.9527574
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  • empty test (4)
  • periodicMatern dCdphi is wrong for the 3rd parameter (1)
  • periodicMatern magi:::phisigllik gradient has problem for eta, needs debug (1)
  • periodicMatern phisigSample runs with error, needs debug (1)
  • rationalQuadratic derivative variance Kmat too small (2)
  • rbf derivative variance Kmat too small (2)
  • segfault due to null pointer in hes1logmodel function, passing is wrong (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_xthetaphillik.R:149:3): xthetaphisigmallik derivatives ────────
  all(abs(x) < 0.005) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_xthetaphillik.R:166:3): xthetaphisigmallik derivatives ────────
  all(abs(x) < 0.005) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_xthetaphillik.R:184:3): xthetaphisigmallik derivatives ────────
  all(abs(x) < 0.005) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_xthetaphillik.R:201:3): xthetaphisigmallik derivatives ────────
  all(abs(x) < 0.005) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 4 | WARN 0 | SKIP 15 | PASS 457 ]
  Error: Test failures
  Execution halted