Running ‘testthat.R’ [12s/18s]
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 = -578.668
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #2 Rep #1 pred log like = -573.942
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #3 Rep #1 pred log like = -590.902
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #4 Rep #1 pred log like = -579.175
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #5 Rep #1 pred log like = -587.057
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #6 Rep #1 pred log like = -596.432
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #7 Rep #1 pred log like = -577.729
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #8 Rep #1 pred log like = -611.017
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #9 Rep #1 pred log like = -594.266
  Running at Laplace(4.47214) None  Grid-point #1 at 0.1 	Fold #10 Rep #1 pred log like = -594.057
  AvgPred = -588.324 with stdev = 10.7386
  Completed at 0.1
  Next point at 1 with value 0 and continue = 1
  search[ 0.1 ] = -588.324(10.7386)
  
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #1 Rep #1 pred log like = -579.005
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #2 Rep #1 pred log like = -573.501
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #3 Rep #1 pred log like = -593.578
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #4 Rep #1 pred log like = -583.972
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #5 Rep #1 pred log like = -589.141
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #6 Rep #1 pred log like = -598.568
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #7 Rep #1 pred log like = -579.41
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #8 Rep #1 pred log like = -611.374
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #9 Rep #1 pred log like = -595.563
  Running at Laplace(1.41421) None  Grid-point #2 at 1 	Fold #10 Rep #1 pred log like = -596.237
  AvgPred = -590.035 with stdev = 10.7482
  Completed at 1
  Next point at 0.01 with value 0 and continue = 1
  search[ 0.1 ] = -588.324(10.7386)
  search[ 1 ] = -590.035(10.7482)
  
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #1 Rep #1 pred log like = -579.265
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #2 Rep #1 pred log like = -575.14
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #3 Rep #1 pred log like = -588.558
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #4 Rep #1 pred log like = -574.136
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #5 Rep #1 pred log like = -588.009
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #6 Rep #1 pred log like = -595.77
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #7 Rep #1 pred log like = -576.398
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #8 Rep #1 pred log like = -612.9
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #9 Rep #1 pred log like = -594.761
  Running at Laplace(14.1421) None  Grid-point #3 at 0.01 	Fold #10 Rep #1 pred log like = -591.299
  AvgPred = -587.624 with stdev = 11.421
  Completed at 0.01
  Next point at 0.001 with value 0 and continue = 1
  search[ 0.01 ] = -587.624(11.421)
  search[ 0.1 ] = -588.324(10.7386)
  search[ 1 ] = -590.035(10.7482)
  
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #1 Rep #1 pred log like = -584.521
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #2 Rep #1 pred log like = -578.463
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #3 Rep #1 pred log like = -592.864
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #4 Rep #1 pred log like = -581.751
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #5 Rep #1 pred log like = -596.902
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #6 Rep #1 pred log like = -604.67
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #7 Rep #1 pred log like = -581.532
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #8 Rep #1 pred log like = -619.348
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #9 Rep #1 pred log like = -598.041
  Running at Laplace(44.7214) None  Grid-point #4 at 0.001 	Fold #10 Rep #1 pred log like = -593.315
  AvgPred = -593.141 with stdev = 11.8836
  Completed at 0.001
  Next point at 0.0549544 with value -587.448 and continue = 0
  search[ 0.001 ] = -593.141(11.8836)
  search[ 0.01 ] = -587.624(11.421)
  search[ 0.1 ] = -588.324(10.7386)
  search[ 1 ] = -590.035(10.7482)
  
  
  Maximum predicted log likelihood (-587.448) estimated at:
  	0.0549544 (variance)
  	6.03273 (lambda)
  
  Fitting model at optimal hyperparameter
  Using prior: Laplace(6.03273) None 
  Using cross-validation selector type byRow
  Performing 10-fold cross-validation [seed = 1583425373] 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 = -15.8476
  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 = -5.31322
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #4 Rep #1 pred log like = -2.20943
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #5 Rep #1 pred log like = -4.84215
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #6 Rep #1 pred log like = -2.77047
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #7 Rep #1 pred log like = -9.40993
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #8 Rep #1 pred log like = -7.51895
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #9 Rep #1 pred log like = -2.95363
  Running at Laplace(2.44949) None  Grid-point #1 at 0.333333 	Fold #10 Rep #1 pred log like = 0
  AvgPred = -6.50031 with stdev = 4.96509
  Completed at 0.333333
  Next point at 3.33333 with value 0 and continue = 1
  search[ 0.333333 ] = -6.50031(4.96509)
  
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #1 Rep #1 pred log like = -15.7841
  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 = -5.39946
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #4 Rep #1 pred log like = -2.20787
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #5 Rep #1 pred log like = -4.90174
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #6 Rep #1 pred log like = -3.50398
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #7 Rep #1 pred log like = -7.7905
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #8 Rep #1 pred log like = -9.66597
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #9 Rep #1 pred log like = -3.10646
  Running at Laplace(0.774597) None  Grid-point #2 at 3.33333 	Fold #10 Rep #1 pred log like = 0
  AvgPred = -6.91477 with stdev = 5.35658
  Completed at 3.33333
  Next point at 0.0333333 with value 0 and continue = 1
  search[ 0.333333 ] = -6.50031(4.96509)
  search[ 3.33333 ] = -6.91477(5.35658)
  
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #1 Rep #1 pred log like = -17.2486
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #2 Rep #1 pred log like = -8.56407
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #3 Rep #1 pred log like = -4.23478
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #4 Rep #1 pred log like = -2.22488
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #5 Rep #1 pred log like = -5.0378
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #6 Rep #1 pred log like = -2.38932
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #7 Rep #1 pred log like = -8.20109
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #8 Rep #1 pred log like = -6.4016
  Running at Laplace(7.74597) None  Grid-point #3 at 0.0333333 	Fold #9 Rep #1 pred log like = -2.8379
  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.50031(4.96509)
  search[ 3.33333 ] = -6.91477(5.35658)
  
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #1 Rep #1 pred log like = -17.9197
  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 = -3.17613
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #4 Rep #1 pred log like = -2.59079
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #5 Rep #1 pred log like = -5.61865
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #6 Rep #1 pred log like = -2.40094
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #7 Rep #1 pred log like = -10.0062
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #8 Rep #1 pred log like = -4.82178
  Running at Laplace(24.4949) None  Grid-point #4 at 0.00333333 	Fold #9 Rep #1 pred log like = -2.43581
  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.00197496 with value -5.70408 and continue = 0
  search[ 0.00333333 ] = -5.7731(4.9802)
  search[ 0.0333333 ] = -5.71401(4.63274)
  search[ 0.333333 ] = -6.50031(4.96509)
  search[ 3.33333 ] = -6.91477(5.35658)
  
  
  Maximum predicted log likelihood (-5.70408) estimated at:
  	0.00197496 (variance)
  	31.8226 (lambda)
  
  Fitting model at optimal hyperparameter
  Using prior: Laplace(31.8226) 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