Running ‘testthat.R’ [308s/405s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # MixtComp version 4 - july 2019
  > # Copyright (C) Inria - Université de Lille - CNRS 
  > 
  > # This program is free software: you can redistribute it and/or modify
  > # it under the terms of the GNU Affero General Public License as
  > # published by the Free Software Foundation, either version 3 of the
  > # License, or (at your option) any later version.
  > # This program is distributed in the hope that it will be useful,
  > # but WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  > # GNU Affero General Public License for more details.
  > # 
  > # You should have received a copy of the GNU Affero General Public License
  > # along with this program.  If not, see <https://www.gnu.org/licenses/>
  >  
  > 
  > library(testthat)
  > library(RMixtComp)
  Loading required package: RMixtCompUtilities
  > 
  > test_check("RMixtComp")
  ====== Run Hierarchical MixtComp in  mode with 1 run(s) per number of classes and 1 core(s)
  Data:  individuals and 3 variables.
  -- K = 2
  Number of splits to perform: 1
   Split a cluster in two
  Start run 1
  Run 1 DONE 
   Compute criterion
  Run time: 0.056s
  -- K = 3
  Number of splits to perform: 2
   Split a cluster in two
  Start run 1
  Run 1 DONE 
   Split a cluster in two
  Start run 1
  Run 1 DONE 
   Compute criterion
  Start run 1
  Run 1 DONE 
  Start run 1
  Run 1 DONE 
  Run time: 0.233s
  -- K = 4
  Number of splits to perform: 2
   Split a cluster in two
  Start run 1
  Run 1 DONE 
   Split a cluster in two
  Start run 1
  Run 1 DONE 
   Compute criterion
  Start run 1
  Run 1 DONE 
  Start run 1
  Run 1 DONE 
  Start run 1
  Run 1 DONE 
  Run time: 0.222s
  You did not provide a model parameter.
  Data are assumed to follow R standard and not MixtComp standard.
  Models will be imputed as follows: "Gaussian" for numeric variable, "Multinomial" for character or factor variable and "Poisson" for integer variable.
  If a variable is named "z_class" and its type is character, factor or integer, it will be used as "LatentClass".
           cont         categ         poiss 
     "Gaussian" "Multinomial"     "Poisson" 
  ====== Run MixtComp in learn mode with 1 run(s) per number of classes and 1 core(s)
  Data: 200 individuals and 3 variables.
  -- K = 2
  Start run 1
  Run 1 DONE 
  Run completed in 0.05s
  Total runtime: 0.079s
  Best model according to BIC: 2 clusters.
  ── 1. Failure: mixtCompLearn works in basic mode + predict (@test.runWrapper.R#3
  RMixtCompIO:::rand.index(getPartition(resLearn), rep(1:2, each = 100)) is not more than 0.95. Difference: -0.162
  
  ── 2. Failure: mixtCompLearn works in basic mode + predict (@test.runWrapper.R#5
  RMixtCompIO:::rand.index(getPartition(resPredict), rep(1:2, each = 100)) is not more than 0.95. Difference: -0.162
  
  You did not provide a model parameter.
  Data are assumed to follow R standard and not MixtComp standard.
  Models will be imputed as follows: "Gaussian" for numeric variable, "Multinomial" for character or factor variable and "Poisson" for integer variable.
  If a variable is named "z_class" and its type is character, factor or integer, it will be used as "LatentClass".
           cont        categ1        categ2         poiss 
     "Gaussian" "Multinomial" "Multinomial"     "Poisson" 
  ====== Run MixtComp in learn mode with 1 run(s) per number of classes and 1 core(s)
  Data: 200 individuals and 4 variables.
  -- K = 2
  Start run 1
  Run 1 DONE 
  Run completed in 0.041s
  Total runtime: 0.061s
  Best model according to BIC: 2 clusters.
  You did not provide a model parameter.
  Data are assumed to follow R standard and not MixtComp standard.
  Models will be imputed as follows: "Gaussian" for numeric variable, "Multinomial" for character or factor variable and "Poisson" for integer variable.
  If a variable is named "z_class" and its type is character, factor or integer, it will be used as "LatentClass".
           cont         poiss       z_class 
     "Gaussian"     "Poisson" "LatentClass" 
  ====== Run MixtComp in learn mode with 1 run(s) per number of classes and 1 core(s)
  Data: 200 individuals and 3 variables.
  -- K = 2
  Start run 1
  Run 1 DONE 
  Run completed in 0.023s
  Total runtime: 0.051s
  Best model according to BIC: 2 clusters.
  You did not provide a model parameter.
  Data are assumed to follow R standard and not MixtComp standard.
  Models will be imputed as follows: "Gaussian" for numeric variable, "Multinomial" for character or factor variable and "Poisson" for integer variable.
  If a variable is named "z_class" and its type is character, factor or integer, it will be used as "LatentClass".
   Sepal.Length   Sepal.Width  Petal.Length   Petal.Width       z_class 
     "Gaussian"    "Gaussian"    "Gaussian"    "Gaussian" "LatentClass" 
  ====== Run MixtComp in learn mode with 1 run(s) per number of classes and 1 core(s)
  Data: 150 individuals and 5 variables.
  -- K = 3
  Start run 1
  Run 1 DONE 
  Run completed in 0.021s
  Total runtime: 0.045s
  Best model according to BIC: 3 clusters.
     
        1   2   3   4
    1   7   4 170  16
    2  29 272   7   1
    3   8   2  13 129
    4 293  39   3   7
  ====== Run MixtComp in learn mode with 5 run(s) per number of classes and 2 core(s)
  Data: 1000 individuals and 2 variables.
  -- K = 2
  starting worker pid=32795 on localhost:11240 at 16:28:59.212
  starting worker pid=32814 on localhost:11240 at 16:28:59.617
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 32795
  Start run 2 on thread number 32814
  Run 2 DONE on thread number 32814
  Start run 3 on thread number 32814
  Run 1 DONE on thread number 32795
  Start run 4 on thread number 32795
  Run 3 DONE on thread number 32814
  Start run 5 on thread number 32814
  Run 4 DONE on thread number 32795
  Run 5 DONE on thread number 32814
  Run completed in 1.777s
  -- K = 3
  starting worker pid=32851 on localhost:11240 at 16:29:01.011
  starting worker pid=32881 on localhost:11240 at 16:29:01.472
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 2 on thread number 32881
  Start run 1 on thread number 32851
  Run 2 DONE on thread number 32881
  Start run 3 on thread number 32881
  Run 1 DONE on thread number 32851
  Start run 4 on thread number 32851
  Run 3 DONE on thread number 32881
  Start run 5 on thread number 32881
  Run 4 DONE on thread number 32851
  Run 5 DONE on thread number 32881
  Run completed in 2.051s
  -- K = 4
  starting worker pid=32916 on localhost:11240 at 16:29:03.061
  starting worker pid=32937 on localhost:11240 at 16:29:03.449
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 32916
  Start run 2 on thread number 32937
  Run 1 DONE on thread number 32916
  Start run 3 on thread number 32916
  Run 2 DONE on thread number 32937
  Start run 4 on thread number 32937
  Run 4 DONE on thread number 32937
  Start run 5 on thread number 32937
  Run 3 DONE on thread number 32916
  Run 5 DONE on thread number 32937
  Run completed in 2.038s
  -- K = 5
  starting worker pid=32987 on localhost:11240 at 16:29:05.083
  starting worker pid=33004 on localhost:11240 at 16:29:05.484
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 2 on thread number 33004
  Start run 1 on thread number 32987
  Run 1 DONE on thread number 32987
  Run 2 DONE on thread number 33004
  Start run 4 on thread number 33004
  Start run 3 on thread number 32987
  Run 3 DONE on thread number 32987
  Start run 5 on thread number 32987
  Run 4 DONE on thread number 33004
  Run 5 DONE on thread number 32987
  Run completed in 3.602s
  Total runtime: 9.469s
  Best model according to BIC: 4 clusters.
     
        1   2   3   4
    1 186   3   0   8
    2   5   0 286  18
    3   5 143   3   1
    4   6   3   9 324
  ############### MixtCompLearn Run ###############
  nClass: 2 3 4 5 
  Criterion used: BIC 
              2         3         4         5
  BIC -2461.966 -2331.124 -2278.647 -2287.084
  ICL -2496.251 -2404.676 -2371.913 -2385.093
  Best model: 4 clusters 
  ########### MixtComp Run ###########
  Number of individuals: 1000 
  Number of variables: 1 
  Number of clusters: 4 
  Mode: learn 
  Time: 0.354 s
  SEM burn-in iterations done: 66/100 
  SEM run iterations done: 11/100 
  Observed log-likelihood: -2240.654 
  BIC: -2278.647 
  ICL: -2371.913 
  Discriminative power:
  Gaussian1 
      0.904 
  Proportions of the mixture:
  0.197 0.153 0.306 0.344 
  Parameters of the most discriminant variables:
  - Gaussian1: Gaussian 
         mean    sd
  k: 1 -5.036 1.017
  k: 2 -1.999 0.516
  k: 3  5.014 0.971
  k: 4  2.027 0.527
  ####################################
  ########### MixtComp Run ###########
  Number of individuals: 1000 
  Number of variables: 1 
  Number of clusters: 2 
  Mode: learn 
  Time: 0.201 s
  SEM burn-in iterations done: 30/100 
  SEM run iterations done: 11/100 
  Observed log-likelihood: -2444.696 
  BIC: -2461.966 
  ICL: -2496.251 
  Discriminative power:
  Gaussian1 
      0.906 
  Proportions of the mixture:
  0.649 0.351 
  Parameters of the most discriminant variables:
  - Gaussian1: Gaussian 
         mean    sd
  k: 1  3.395 1.742
  k: 2 -3.758 1.755
  ####################################
  $nClass: 2 3 4 5 
  $criterion:  BIC 
  $crit: 
              2         3         4         5
  BIC -2461.966 -2331.124 -2278.647 -2287.084
  ICL -2496.251 -2404.676 -2371.913 -2385.093
  
   Best result
  $algo
  $algo$nInd: 1000 
  $algo$nClass: 4 
  $algo$mode: learn 
  	 Other outputs: nbBurnInIter nbIter nbGibbsBurnInIter nbGibbsIter nSemTry nInitPerClass confidenceLevel ratioStableCriterion nStableCriterion basicMode hierarchicalMode 
  
  $mixture
  $mixture$lnObservedLikelihood: -2240.654 
  $mixture$nbFreeParameters: 11 
  $mixture$BIC: -2278.647 
  $mixture$ICL: -2371.913 
  	 Other outputs: runTime lnCompletedLikelihood IDClass lnProbaGivenClass completedProbabilityLogBurnIn completedProbabilityLogRun delta 
  
  $variable
  $variable$type
  $variable$type$z_class :  LatentClass 
  $variable$type$Gaussian1 :  Gaussian 
  
  $variable$data
  $variable$data$z_class$completed:  1 1 3 2 3 2 ...
  $variable$data$z_class$stat:
        k: 1 k: 2 k: 3 k: 4
  [1,] 1.00 0.00    0    0
  [2,] 1.00 0.00    0    0
  [3,] 0.00 0.00    1    0
  [4,] 0.01 0.99    0    0
  [5,] 0.00 0.00    1    0
  [6,] 0.00 1.00    0    0
  
  	 Other variables: Gaussian1 
  
  $variable$param
  $variable$param$z_class: 
       median q 2.500000% q 97.500000%
  k: 1  0.197   0.1955193    0.1964637
  k: 2  0.153   0.1527495    0.1552063
  k: 3  0.306   0.3085540    0.3074656
  k: 4  0.344   0.3431772    0.3408644
  $variable$param$Gaussian1: 
                   median q 2.500000% q 97.500000%
  k: 1, mean:  -5.0363440  -5.1055017   -5.0175679
  k: 1, sd      1.0165720   0.9445939    1.0539341
  k: 2, mean:  -1.9988607  -2.0327486   -1.9784817
  k: 2, sd      0.5162846   0.5010840    0.5553214
  k: 3, mean:   5.0144733   4.9687243    5.0589437
  k: 3, sd      0.9708326   0.9485084    0.9861978
  k: 4, mean:   2.0273206   2.0118672    2.0385853
  k: 4, sd      0.5273044   0.5128571    0.5522722
  
   $res: results from all MixtComp Run
  $algo
  $algo$nInd: 1000 
  $algo$nClass: 2 
  $algo$mode: learn 
  	 Other outputs: nbBurnInIter nbIter nbGibbsBurnInIter nbGibbsIter nSemTry nInitPerClass confidenceLevel ratioStableCriterion nStableCriterion basicMode hierarchicalMode 
  
  $mixture
  $mixture$lnObservedLikelihood: -2444.696 
  $mixture$nbFreeParameters: 5 
  $mixture$BIC: -2461.966 
  $mixture$ICL: -2496.251 
  	 Other outputs: runTime lnCompletedLikelihood IDClass lnProbaGivenClass completedProbabilityLogBurnIn completedProbabilityLogRun delta 
  
  $variable
  $variable$type
  $variable$type$z_class :  LatentClass 
  $variable$type$Gaussian1 :  Gaussian 
  
  $variable$data
  $variable$data$z_class$completed:  2 2 1 2 1 2 ...
  $variable$data$z_class$stat:
        k: 1 k: 2
  [1,] 0.00 1.00
  [2,] 0.00 1.00
  [3,] 1.00 0.00
  [4,] 0.12 0.88
  [5,] 1.00 0.00
  [6,] 0.30 0.70
  
  	 Other variables: Gaussian1 
  
  $variable$param
  $variable$param$z_class: 
       median q 2.500000% q 97.500000%
  k: 1  0.649   0.6491935    0.6468254
  k: 2  0.351   0.3508065    0.3531746
  $variable$param$Gaussian1: 
                  median q 2.500000% q 97.500000%
  k: 1, mean:   3.395274    3.348618     3.410529
  k: 1, sd      1.742286    1.709303     1.806584
  k: 2, mean:  -3.758075   -3.814483    -3.663618
  k: 2, sd      1.755064    1.721648     1.804541
  Start run 1
  Run 1 DONE 
  ====== Run Hierarchical MixtComp in learn mode with 2 run(s) per number of classes and 2 core(s)
  Data: 200 individuals and 3 variables.
  -- K = 2
  Number of splits to perform: 1
   Split a cluster in two
  starting worker pid=33081 on localhost:11240 at 16:29:10.348
  starting worker pid=33099 on localhost:11240 at 16:29:10.772
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 2 on thread number 33099
  Start run 1 on thread number 33081
  Run 2 DONE on thread number 33099
  Run 1 DONE on thread number 33081
   Compute criterion
  Run time: 7.953s
  -- K = 3
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=33696 on localhost:11240 at 16:29:18.263
  starting worker pid=33715 on localhost:11240 at 16:29:18.648
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 2 on thread number 33715
  Start run 1 on thread number 33696
  Run 1 DONE on thread number 33696
  Run 2 DONE on thread number 33715
   Split a cluster in two
  starting worker pid=34122 on localhost:11240 at 16:29:24.761
  starting worker pid=34139 on localhost:11240 at 16:29:25.246
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 34122
  Start run 2 on thread number 34139
  Run 1 DONE on thread number 34122
  Run 2 DONE on thread number 34139
   Compute criterion
  starting worker pid=34169 on localhost:11240 at 16:29:28.306
  starting worker pid=34185 on localhost:11240 at 16:29:28.694
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 2 on thread number 34185
  Start run 1 on thread number 34169
  Run 2 DONE on thread number 34185
  Run 1 DONE on thread number 34169
  starting worker pid=34303 on localhost:11240 at 16:29:36.610
  starting worker pid=34328 on localhost:11240 at 16:29:37.023
  Loading required package: RMixtCompIO
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  loaded RMixtCompIO and set parent environment
  Start run 2 on thread number 34328
  Start run 1 on thread number 34303
  Run 2 DONE on thread number 34328
  Run 1 DONE on thread number 34303
  Run time: 27.449s
  Total runtime: 35.421s
  Best model according to BIC: 2 clusters.
  ############### MixtCompLearn Run ###############
  nClass: 2 3 
  Criterion used: BIC 
              2         3
  BIC -23057.51 -23075.89
  ICL -23057.51 -23116.35
  Best model: 2 clusters 
  ########### MixtComp Run ###########
  Number of individuals: 200 
  Number of variables: 2 
  Number of clusters: 2 
  Mode: learn 
  Time: 6.749 s
  SEM burn-in iterations done: 11/50 
  SEM run iterations done: 11/50 
  Observed log-likelihood: -23001.88 
  BIC: -23057.51 
  ICL: -23057.51 
  Discriminative power:
  Functional1   Gaussian1 
        1.000       0.959 
  Proportions of the mixture:
  0.685 0.315 
  Parameters of the most discriminant variables:
  - Functional1: Func_CS 
  $alpha
       s:1, alpha0 s:1, alpha1 s:2, alpha0 s:2, alpha1
  k: 1           0           0    -841.320      83.539
  k: 2           0           0    -593.027      59.425
  
  $beta
       s:1, c:1 s:1, c:2 s:2, c:1 s:2, c:2
  k: 1    8.294   -0.990  -11.768    1.007
  k: 2    1.665    1.001   21.755   -1.006
  
  $sd
         s:1   s:2
  k: 1 0.760 0.738
  k: 2 0.742 0.757
  
  - Gaussian1: Gaussian 
         mean    sd
  k: 1  4.927 1.147
  k: 2 -4.936 0.983
  ####################################
  ########### MixtComp Run ###########
  Number of individuals: 200 
  Number of variables: 2 
  Number of clusters: 2 
  Mode: learn 
  Time: 6.749 s
  SEM burn-in iterations done: 11/50 
  SEM run iterations done: 11/50 
  Observed log-likelihood: -23001.88 
  BIC: -23057.51 
  ICL: -23057.51 
  Discriminative power:
  Functional1   Gaussian1 
        1.000       0.959 
  Proportions of the mixture:
  0.685 0.315 
  Parameters of the most discriminant variables:
  - Functional1: Func_CS 
  $alpha
       s:1, alpha0 s:1, alpha1 s:2, alpha0 s:2, alpha1
  k: 1           0           0    -841.320      83.539
  k: 2           0           0    -593.027      59.425
  
  $beta
       s:1, c:1 s:1, c:2 s:2, c:1 s:2, c:2
  k: 1    8.294   -0.990  -11.768    1.007
  k: 2    1.665    1.001   21.755   -1.006
  
  $sd
         s:1   s:2
  k: 1 0.760 0.738
  k: 2 0.742 0.757
  
  - Gaussian1: Gaussian 
         mean    sd
  k: 1  4.927 1.147
  k: 2 -4.936 0.983
  ####################################
  $nClass: 2 3 
  $criterion:  BIC 
  $crit: 
              2         3
  BIC -23057.51 -23075.89
  ICL -23057.51 -23116.35
  
   Best result
  $algo
  $algo$nInd: 200 
  $algo$nClass: 2 
  $algo$mode: learn 
  	 Other outputs: nbBurnInIter nbIter nbGibbsBurnInIter nbGibbsIter nSemTry nInitPerClass confidenceLevel ratioStableCriterion nStableCriterion basicMode hierarchicalMode 
  
  $mixture
  $mixture$lnObservedLikelihood: -23001.88 
  $mixture$nbFreeParameters: 21 
  $mixture$BIC: -23057.51 
  $mixture$ICL: -23057.51 
  	 Other outputs: runTime lnCompletedLikelihood IDClass lnProbaGivenClass completedProbabilityLogBurnIn completedProbabilityLogRun delta 
  
  $variable
  $variable$type
  $variable$type$z_class :  LatentClass 
  $variable$type$Functional1 :  Func_CS 
  $variable$type$Gaussian1 :  Gaussian 
  
  $variable$data
  $variable$data$z_class$completed:  1 2 1 2 2 1 ...
  $variable$data$z_class$stat:
        k: 1 k: 2
  [1,]    1    0
  [2,]    0    1
  [3,]    1    0
  [4,]    0    1
  [5,]    0    1
  [6,]    1    0
  
  	 Other variables: Functional1 Gaussian1 
  
  $variable$param
  $variable$param$z_class: 
       median q 2.500000% q 97.500000%
  k: 1  0.685       0.685        0.685
  k: 2  0.315       0.315        0.315
  $variable$param$Functional1: 
  NULL
  $variable$param$Gaussian1: 
                   median q 2.500000% q 97.500000%
  k: 1, mean:   4.9267297   4.8829403     4.973790
  k: 1, sd      1.1468825   1.1178092     1.205620
  k: 2, mean:  -4.9358763  -4.9503902    -4.902463
  k: 2, sd      0.9827081   0.9673104     1.004068
  
   $res: results from all MixtComp Run
  $algo
  $algo$nInd: 200 
  $algo$nClass: 2 
  $algo$mode: learn 
  	 Other outputs: nbBurnInIter nbIter nbGibbsBurnInIter nbGibbsIter nSemTry nInitPerClass confidenceLevel ratioStableCriterion nStableCriterion 
  
  $mixture
  $mixture$lnObservedLikelihood: -23001.88 
  $mixture$nbFreeParameters: 21 
  $mixture$BIC: -23057.51 
  $mixture$ICL: -23057.51 
  	 Other outputs: runTime lnCompletedLikelihood IDClass lnProbaGivenClass completedProbabilityLogBurnIn completedProbabilityLogRun delta 
  
  $variable
  $variable$type
  $variable$type$z_class :  LatentClass 
  $variable$type$Functional1 :  Func_CS 
  $variable$type$Gaussian1 :  Gaussian 
  
  $variable$data
  $variable$data$z_class$completed:  1 2 1 2 2 1 ...
  $variable$data$z_class$stat:
        k: 1 k: 2
  [1,]    1    0
  [2,]    0    1
  [3,]    1    0
  [4,]    0    1
  [5,]    0    1
  [6,]    1    0
  
  	 Other variables: Functional1 Gaussian1 
  
  $variable$param
  $variable$param$z_class: 
       median q 2.500000% q 97.500000%
  k: 1  0.685       0.685        0.685
  k: 2  0.315       0.315        0.315
  $variable$param$Functional1: 
  NULL
  $variable$param$Gaussian1: 
                   median q 2.500000% q 97.500000%
  k: 1, mean:   4.9267297   4.8829403     4.973790
  k: 1, sd      1.1468825   1.1178092     1.205620
  k: 2, mean:  -4.9358763  -4.9503902    -4.902463
  k: 2, sd      0.9827081   0.9673104     1.004068
  Start run 1
  Run 1 DONE 
  $warnLog
  [1] "Crash."
  
  ====== Run MixtComp in learn mode with 1 run(s) per number of classes and 1 core(s)
  Data: 200 individuals and 8 variables.
  -- K = 2
  Start run 1
  Run 1 DONE 
  Run completed in 14.012s
  Total runtime: 14.044s
  Best model according to BIC: 2 clusters.
  ############### MixtCompLearn Run ###############
  nClass: 2 
  Criterion used: BIC 
              2
  BIC -47638.14
  ICL -47638.14
  Best model: 2 clusters 
  ########### MixtComp Run ###########
  Number of individuals: 200 
  Number of variables: 8 
  Number of clusters: 2 
  Mode: learn 
  Time: 14.001 s
  SEM burn-in iterations done: 11/25 
  SEM run iterations done: 11/25 
  Observed log-likelihood: -47492.44 
  BIC: -47638.14 
  ICL: -47638.14 
  Discriminative power:
             Functional1 FunctionalSharedAlpha1              Gaussian1 
                   1.000                  1.000                  0.959 
                Poisson1               Weibull1                  Rank1 
                   0.933                  0.912                  0.620 
                 nBinom1           Categorical1 
                   0.392                  0.254 
  Proportions of the mixture:
  0.315 0.685 
  Parameters of the most discriminant variables:
  - Functional1: Func_CS 
  $alpha
       s:1, alpha0 s:1, alpha1 s:2, alpha0 s:2, alpha1
  k: 1           0           0  -82201.511    8142.827
  k: 2           0           0    -874.218      87.566
  
  $beta
       s:1, c:1 s:1, c:2 s:2, c:1 s:2, c:2
  k: 1    1.700    0.990   21.950   -1.018
  k: 2    8.325   -0.999  -11.617    0.998
  
  $sd
         s:1   s:2
  k: 1 0.757 0.740
  k: 2 0.746 0.752
  
  - FunctionalSharedAlpha1: Func_SharedAlpha_CS 
  $alpha
       s:1, alpha0 s:1, alpha1 s:2, alpha0 s:2, alpha1
  k: 0           0           0    -1108.67     110.958
  k: 1           0           0    -1108.67     110.958
  
  $beta
       s:1, c:1 s:1, c:2 s:2, c:1 s:2, c:2
  k: 0    1.647    1.008   21.639   -0.998
  k: 1    8.327   -0.998  -11.591    0.995
  
  $sd
         s:1   s:2
  k: 0 0.747 0.755
  k: 1 0.756 0.759
  
  - Gaussian1: Gaussian 
         mean    sd
  k: 1 -4.928 0.979
  k: 2  4.906 1.144
  ####################################
  ########### MixtComp Run ###########
  Number of individuals: 200 
  Number of variables: 8 
  Number of clusters: 2 
  Mode: learn 
  Time: 14.001 s
  SEM burn-in iterations done: 11/25 
  SEM run iterations done: 11/25 
  Observed log-likelihood: -47492.44 
  BIC: -47638.14 
  ICL: -47638.14 
  Discriminative power:
             Functional1 FunctionalSharedAlpha1              Gaussian1 
                   1.000                  1.000                  0.959 
                Poisson1               Weibull1                  Rank1 
                   0.933                  0.912                  0.620 
                 nBinom1           Categorical1 
                   0.392                  0.254 
  Proportions of the mixture:
  0.315 0.685 
  Parameters of the most discriminant variables:
  - Functional1: Func_CS 
  $alpha
       s:1, alpha0 s:1, alpha1 s:2, alpha0 s:2, alpha1
  k: 1           0           0  -82201.511    8142.827
  k: 2           0           0    -874.218      87.566
  
  $beta
       s:1, c:1 s:1, c:2 s:2, c:1 s:2, c:2
  k: 1    1.700    0.990   21.950   -1.018
  k: 2    8.325   -0.999  -11.617    0.998
  
  $sd
         s:1   s:2
  k: 1 0.757 0.740
  k: 2 0.746 0.752
  
  - FunctionalSharedAlpha1: Func_SharedAlpha_CS 
  $alpha
       s:1, alpha0 s:1, alpha1 s:2, alpha0 s:2, alpha1
  k: 0           0           0    -1108.67     110.958
  k: 1           0           0    -1108.67     110.958
  
  $beta
       s:1, c:1 s:1, c:2 s:2, c:1 s:2, c:2
  k: 0    1.647    1.008   21.639   -0.998
  k: 1    8.327   -0.998  -11.591    0.995
  
  $sd
         s:1   s:2
  k: 0 0.747 0.755
  k: 1 0.756 0.759
  
  - Gaussian1: Gaussian 
         mean    sd
  k: 1 -4.928 0.979
  k: 2  4.906 1.144
  ####################################
  $nClass: 2 
  $criterion:  BIC 
  $crit: 
              2
  BIC -47638.14
  ICL -47638.14
  
   Best result
  $algo
  $algo$nInd: 200 
  $algo$nClass: 2 
  $algo$mode: learn 
  	 Other outputs: nbBurnInIter nbIter nbGibbsBurnInIter nbGibbsIter nInitPerClass nSemTry confidenceLevel ratioStableCriterion nStableCriterion basicMode hierarchicalMode 
  
  $mixture
  $mixture$lnObservedLikelihood: -47492.44 
  $mixture$nbFreeParameters: 55 
  $mixture$BIC: -47638.14 
  $mixture$ICL: -47638.14 
  	 Other outputs: runTime lnCompletedLikelihood IDClass lnProbaGivenClass completedProbabilityLogBurnIn completedProbabilityLogRun delta 
  
  $variable
  $variable$type
  $variable$type$z_class :  LatentClass 
  $variable$type$Functional1 :  Func_CS 
  $variable$type$FunctionalSharedAlpha1 :  Func_SharedAlpha_CS 
  $variable$type$Gaussian1 :  Gaussian 
  $variable$type$Poisson1 :  Poisson 
  	 Other variables: Weibull1 Rank1 nBinom1 Categorical1 
  
  $variable$data
  $variable$data$z_class$completed:  2 1 2 1 1 2 ...
  $variable$data$z_class$stat:
        k: 1 k: 2
  [1,]    0    1
  [2,]    1    0
  [3,]    0    1
  [4,]    1    0
  [5,]    1    0
  [6,]    0    1
  
  	 Other variables: Functional1 FunctionalSharedAlpha1 Gaussian1 Poisson1 Weibull1 Rank1 nBinom1 Categorical1 
  
  $variable$param
  $variable$param$z_class: 
       median q 2.500000% q 97.500000%
  k: 1  0.315       0.315        0.315
  k: 2  0.685       0.685        0.685
  $variable$param$Functional1: 
  NULL
  $variable$param$FunctionalSharedAlpha1: 
  NULL
  $variable$param$Gaussian1: 
                   median q 2.500000% q 97.500000%
  k: 1, mean:  -4.9275215  -4.9411280    -4.898491
  k: 1, sd      0.9786919   0.9638641     1.028326
  k: 2, mean:   4.9056218   4.8938931     4.959826
  k: 2, sd      1.1435579   1.1172083     1.194609
  $variable$param$Poisson1: 
                  median q 2.500000% q 97.500000%
  k: 1, lambda  1.015873    0.984127     1.063492
  k: 2, lambda 10.693431   10.627737    10.766423
  	 Other variables: Weibull1 Rank1 nBinom1 Categorical1 
  
   $res: results from all MixtComp Run
  $algo
  $algo$nInd: 200 
  $algo$nClass: 2 
  $algo$mode: learn 
  	 Other outputs: nbBurnInIter nbIter nbGibbsBurnInIter nbGibbsIter nInitPerClass nSemTry confidenceLevel ratioStableCriterion nStableCriterion basicMode hierarchicalMode 
  
  $mixture
  $mixture$lnObservedLikelihood: -47492.44 
  $mixture$nbFreeParameters: 55 
  $mixture$BIC: -47638.14 
  $mixture$ICL: -47638.14 
  	 Other outputs: runTime lnCompletedLikelihood IDClass lnProbaGivenClass completedProbabilityLogBurnIn completedProbabilityLogRun delta 
  
  $variable
  $variable$type
  $variable$type$z_class :  LatentClass 
  $variable$type$Functional1 :  Func_CS 
  $variable$type$FunctionalSharedAlpha1 :  Func_SharedAlpha_CS 
  $variable$type$Gaussian1 :  Gaussian 
  $variable$type$Poisson1 :  Poisson 
  	 Other variables: Weibull1 Rank1 nBinom1 Categorical1 
  
  $variable$data
  $variable$data$z_class$completed:  2 1 2 1 1 2 ...
  $variable$data$z_class$stat:
        k: 1 k: 2
  [1,]    0    1
  [2,]    1    0
  [3,]    0    1
  [4,]    1    0
  [5,]    1    0
  [6,]    0    1
  
  	 Other variables: Functional1 FunctionalSharedAlpha1 Gaussian1 Poisson1 Weibull1 Rank1 nBinom1 Categorical1 
  
  $variable$param
  $variable$param$z_class: 
       median q 2.500000% q 97.500000%
  k: 1  0.315       0.315        0.315
  k: 2  0.685       0.685        0.685
  $variable$param$Functional1: 
  NULL
  $variable$param$FunctionalSharedAlpha1: 
  NULL
  $variable$param$Gaussian1: 
                   median q 2.500000% q 97.500000%
  k: 1, mean:  -4.9275215  -4.9411280    -4.898491
  k: 1, sd      0.9786919   0.9638641     1.028326
  k: 2, mean:   4.9056218   4.8938931     4.959826
  k: 2, sd      1.1435579   1.1172083     1.194609
  $variable$param$Poisson1: 
                  median q 2.500000% q 97.500000%
  k: 1, lambda  1.015873    0.984127     1.063492
  k: 2, lambda 10.693431   10.627737    10.766423
  	 Other variables: Weibull1 Rank1 nBinom1 Categorical1 
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 442 | SKIPPED: 0 | WARNINGS: 4 | FAILED: 2 ]
  1. Failure: mixtCompLearn works in basic mode + predict (@test.runWrapper.R#38) 
  2. Failure: mixtCompLearn works in basic mode + predict (@test.runWrapper.R#54) 
  
  Error: testthat unit tests failed
  Execution halted