Running ‘testthat.R’ [19s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("Cyclops")
  Loading required package: Cyclops
  Sorting outcomes by stratumId and rowId
  Sorting covariates by covariateId, stratumId, and rowId
  Sorting outcomes by stratumId and rowId
  Sorting covariates by covariateId, stratumId and rowId
  Sorting outcomes by stratumId and rowId
  Sorting covariates by covariateId, stratumId, and rowId
  Sorting outcomes by stratumId, time (descending), y, and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sorting outcomes by stratumId, time (descending), y and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sorting outcomes by stratumId, time (descending), y, and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sorting outcomes by stratumId, time (descending), y and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sparseness = 76.245 %
  Sorting covariates by covariateId, stratumId and rowId
  Sorting covariates by covariateId, stratumId, and rowId
  Sorting outcomes by stratumId, time (descending), y, and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sorting outcomes by stratumId, time (descending), y and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sparseness = 75.76 %
  Sorting covariates by covariateId, rowId
  Sorting covariates by covariateId and rowId
  Sparseness = 99.012 %
  Sorting covariates by covariateId and rowId
  Sparseness = 99.012 %
  Sorting outcomes by stratumId, time (descending), y and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sparseness = 75.61 %
  Sorting covariates by covariateId and rowId
  Sparseness = 75.695 %
  Sorting covariates by covariateId and rowId
  Sparseness = 75.3 %
  Sorting covariates by covariateId and rowId
  Sparseness = 76.55 %
  Sorting covariates by covariateId and rowId
  Sparseness = 99.012 %
  Sorting outcomes by stratumId, time (descending), y and rowId
  Sorting covariates by covariateId, stratumId, time (descending), y, and rowId
  Sparseness = 98.0118 %
  Sorting covariates by covariateId and rowId
  Using cross-validation selector type byRow
  Performing 10-fold cross-validation [seed = 123] with data partitions of sizes 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
  Using 1 thread(s)
  Starting var = 0.1
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #1 Rep #1 pred log like = -592.9
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #2 Rep #1 pred log like = -601.081
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #3 Rep #1 pred log like = -599.641
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #4 Rep #1 pred log like = -574.165
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #5 Rep #1 pred log like = -603.109
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #6 Rep #1 pred log like = -577.038
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #7 Rep #1 pred log like = -579.617
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #8 Rep #1 pred log like = -574.139
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #9 Rep #1 pred log like = -585.025
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #10 Rep #1 pred log like = -594.685
  AvgPred = -588.14 with stdev = 10.8916
  Completed at 0.1
  Next point at 1 with value 0 and continue = 1
  search[ 0.1 ] = -588.14(10.8916)
  
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #1 Rep #1 pred log like = -594.279
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #2 Rep #1 pred log like = -601.346
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #3 Rep #1 pred log like = -603.591
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #4 Rep #1 pred log like = -578.205
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #5 Rep #1 pred log like = -603.804
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #6 Rep #1 pred log like = -577.407
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #7 Rep #1 pred log like = -581.721
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #8 Rep #1 pred log like = -578.157
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #9 Rep #1 pred log like = -586.404
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #10 Rep #1 pred log like = -597.769
  AvgPred = -590.268 with stdev = 10.4946
  Completed at 1
  Next point at 0.01 with value 0 and continue = 1
  search[ 0.1 ] = -588.14(10.8916)
  search[ 1 ] = -590.268(10.4946)
  
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #1 Rep #1 pred log like = -592.323
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #2 Rep #1 pred log like = -604.374
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #3 Rep #1 pred log like = -596.081
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #4 Rep #1 pred log like = -572.406
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #5 Rep #1 pred log like = -603.71
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #6 Rep #1 pred log like = -577.372
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #7 Rep #1 pred log like = -577.208
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #8 Rep #1 pred log like = -572.442
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #9 Rep #1 pred log like = -585.33
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #10 Rep #1 pred log like = -594.139
  AvgPred = -587.538 with stdev = 11.6458
  Completed at 0.01
  Next point at 0.001 with value 0 and continue = 1
  search[ 0.01 ] = -587.538(11.6458)
  search[ 0.1 ] = -588.14(10.8916)
  search[ 1 ] = -590.268(10.4946)
  
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #1 Rep #1 pred log like = -596.137
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #2 Rep #1 pred log like = -613.325
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #3 Rep #1 pred log like = -601.605
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #4 Rep #1 pred log like = -577.932
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #5 Rep #1 pred log like = -605.861
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #6 Rep #1 pred log like = -584.422
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #7 Rep #1 pred log like = -581.158
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #8 Rep #1 pred log like = -579.934
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #9 Rep #1 pred log like = -590.138
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #10 Rep #1 pred log like = -600.442
  AvgPred = -593.096 with stdev = 11.565
  Completed at 0.001
  Next point at 0.0510146 with value -587.304 and continue = 0
  search[ 0.001 ] = -593.096(11.565)
  search[ 0.01 ] = -587.538(11.6458)
  search[ 0.1 ] = -588.14(10.8916)
  search[ 1 ] = -590.268(10.4946)
  
  
  Maximum predicted log likelihood (-587.304) estimated at:
  	0.0510146 (variance)
  	6.26134 (lambda)
  
  Fitting model at optimal hyperparameter
  Using prior: Laplace(6.26134) None 
  Using cross-validation selector type byRow
  Performing 10-fold cross-validation [seed = 1584773827] with data partitions of sizes 1 1 1 1 1 1 1 1 1 0
  Using 1 thread(s)
  Starting var = 0.333333 (default)
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #1 Rep #1 pred log like = -4.84214
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #2 Rep #1 pred log like = -14.1377
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #3 Rep #1 pred log like = -2.95357
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #4 Rep #1 pred log like = -7.51908
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #5 Rep #1 pred log like = -5.31322
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #6 Rep #1 pred log like = -9.40993
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #7 Rep #1 pred log like = -15.8481
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #8 Rep #1 pred log like = -2.77049
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #9 Rep #1 pred log like = -2.20943
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #10 Rep #1 pred log like = 0
  AvgPred = -6.50037 with stdev = 4.96518
  Completed at 0.333333
  Next point at 3.33333 with value 0 and continue = 1
  search[ 0.333333 ] = -6.50037(4.96518)
  
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #1 Rep #1 pred log like = -4.90173
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #2 Rep #1 pred log like = -16.7877
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #3 Rep #1 pred log like = -3.10734
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #4 Rep #1 pred log like = -9.66597
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #5 Rep #1 pred log like = -5.39944
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #6 Rep #1 pred log like = -9.85805
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #7 Rep #1 pred log like = -15.784
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #8 Rep #1 pred log like = -3.50406
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #9 Rep #1 pred log like = -2.20787
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #10 Rep #1 pred log like = 0
  AvgPred = -7.12161 with stdev = 5.42576
  Completed at 3.33333
  Next point at 0.0333333 with value 0 and continue = 1
  search[ 0.333333 ] = -6.50037(4.96518)
  search[ 3.33333 ] = -7.12161(5.42576)
  
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #1 Rep #1 pred log like = -5.03785
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #2 Rep #1 pred log like = -8.56408
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #3 Rep #1 pred log like = -2.8379
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #4 Rep #1 pred log like = -6.4016
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #5 Rep #1 pred log like = -4.23478
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #6 Rep #1 pred log like = -8.20108
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #7 Rep #1 pred log like = -17.2486
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #8 Rep #1 pred log like = -2.38932
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #9 Rep #1 pred log like = -2.22488
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #10 Rep #1 pred log like = 0
  AvgPred = -5.71401 with stdev = 4.63274
  Completed at 0.0333333
  Next point at 0.00333333 with value 0 and continue = 1
  search[ 0.0333333 ] = -5.71401(4.63274)
  search[ 0.333333 ] = -6.50037(4.96518)
  search[ 3.33333 ] = -7.12161(5.42576)
  
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #1 Rep #1 pred log like = -5.61866
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #2 Rep #1 pred log like = -8.76107
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #3 Rep #1 pred log like = -2.4358
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #4 Rep #1 pred log like = -4.82178
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #5 Rep #1 pred log like = -3.17614
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #6 Rep #1 pred log like = -10.0062
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #7 Rep #1 pred log like = -17.9197
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #8 Rep #1 pred log like = -2.40094
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #9 Rep #1 pred log like = -2.59079
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #10 Rep #1 pred log like = 0
  AvgPred = -5.7731 with stdev = 4.9802
  Completed at 0.00333333
  Next point at 0.00422603 with value -5.71926 and continue = 0
  search[ 0.00333333 ] = -5.7731(4.9802)
  search[ 0.0333333 ] = -5.71401(4.63274)
  search[ 0.333333 ] = -6.50037(4.96518)
  search[ 3.33333 ] = -7.12161(5.42576)
  
  
  Maximum predicted log likelihood (-5.71926) estimated at:
  	0.00422603 (variance)
  	21.7545 (lambda)
  
  Fitting model at optimal hyperparameter
  Using prior: Laplace(21.7545) None 
  ── 1. Failure: Test basic XY constructor (@test-xyConstructor.R#29)  ───────────
  summary(dataPtrD)[, "type"] not equal to as.factor(rep("dense", 5)).
  Types not compatible: character is not integer
  
  ── 2. Failure: Test basic XY constructor (@test-xyConstructor.R#40)  ───────────
  summary(dataPtrI)[, "type"] not equal to as.factor(rep("indicator", 5)).
  Types not compatible: character is not integer
  
  ── 3. Failure: Test basic XY constructor (@test-xyConstructor.R#51)  ───────────
  summary(dataPtrS)[, "type"] not equal to as.factor(rep("sparse", 5)).
  Types not compatible: character is not integer
  
  ── 4. Failure: Test COO-constructor (@test-xyConstructor.R#182)  ───────────────
  summary(dataPtrI)[, "type"] not equal to as.factor(rep("indicator", 5)).
  Types not compatible: character is not integer
  
  ── 5. Failure: Test COO-constructor (@test-xyConstructor.R#191)  ───────────────
  summary(dataPtrS)[, "type"] not equal to as.factor(rep("sparse", 5)).
  Types not compatible: character is not integer
  
  ── 6. Failure: Test COO-constructor (@test-xyConstructor.R#207)  ───────────────
  summary(dataPtrA)[, "type"] not equal to as.factor(rep("indicator", 5)).
  Types not compatible: character is not integer
  
  Sparseness = 99.09 %
  Sorting covariates by covariateId and rowId
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 245 | SKIPPED: 11 | WARNINGS: 195 | FAILED: 6 ]
  1. Failure: Test basic XY constructor (@test-xyConstructor.R#29) 
  2. Failure: Test basic XY constructor (@test-xyConstructor.R#40) 
  3. Failure: Test basic XY constructor (@test-xyConstructor.R#51) 
  4. Failure: Test COO-constructor (@test-xyConstructor.R#182) 
  5. Failure: Test COO-constructor (@test-xyConstructor.R#191) 
  6. Failure: Test COO-constructor (@test-xyConstructor.R#207) 
  
  Error: testthat unit tests failed
  Execution halted