Running ‘testthat.R’ [280s/413s]
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
  starting worker pid=45270 on localhost:11379 at 14:43:32.035
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45270
  Run 1 DONE on thread number 45270
   Compute criterion
  Run time: 0.977s
  -- K = 3
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=45342 on localhost:11379 at 14:43:33.180
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45342
  Run 1 DONE on thread number 45342
   Split a cluster in two
  starting worker pid=45472 on localhost:11379 at 14:43:34.089
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45472
  Run 1 DONE on thread number 45472
   Compute criterion
  starting worker pid=45556 on localhost:11379 at 14:43:35.082
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45556
  Run 1 DONE on thread number 45556
  starting worker pid=45726 on localhost:11379 at 14:43:36.230
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45726
  Run 1 DONE on thread number 45726
  Run time: 4.144s
  -- K = 4
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=45866 on localhost:11379 at 14:43:37.251
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45866
  Run 1 DONE on thread number 45866
   Split a cluster in two
  starting worker pid=45952 on localhost:11379 at 14:43:38.328
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 45952
  Run 1 DONE on thread number 45952
   Compute criterion
  starting worker pid=46093 on localhost:11379 at 14:43:39.503
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 46093
  Run 1 DONE on thread number 46093
  starting worker pid=46153 on localhost:11379 at 14:43:40.811
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 46153
  Run 1 DONE on thread number 46153
  starting worker pid=46279 on localhost:11379 at 14:43:41.835
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 46279
  Run 1 DONE on thread number 46279
  Run time: 5.554s
  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
  starting worker pid=22597 on localhost:11379 at 14:46:48.679
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 22597
  Run 1 DONE on thread number 22597
  Run completed in 0.907s
  Total runtime: 0.946s
  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        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
  starting worker pid=22781 on localhost:11379 at 14:46:51.171
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 22781
  Run 1 DONE on thread number 22781
  Run completed in 1.217s
  Total runtime: 1.267s
  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
  starting worker pid=22994 on localhost:11379 at 14:46:53.462
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 22994
  Run 1 DONE on thread number 22994
  Run completed in 1.238s
  Total runtime: 1.28s
  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
  starting worker pid=23221 on localhost:11379 at 14:46:55.991
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 23221
  Run 1 DONE on thread number 23221
  Run completed in 0.886s
  Total runtime: 0.967s
  Best model according to BIC: 3 clusters.
     
        1   2   3   4
    1  23   4   3 167
    2   3 287  18   1
    3 137   4   1  10
    4  24  52 261   5
  ====== 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=23648 on localhost:11379 at 14:47:01.262
  starting worker pid=23687 on localhost:11379 at 14:47:01.971
  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 23687
  Start run 1 on thread number 23648
  Run 1 DONE on thread number 23648
  Start run 3 on thread number 23648
  Run 2 DONE on thread number 23687
  Start run 4 on thread number 23687
  Run 4 DONE on thread number 23687
  Start run 5 on thread number 23687
  Run 3 DONE on thread number 23648
  Run 5 DONE on thread number 23687
  Run completed in 2.306s
  -- K = 3
  starting worker pid=23883 on localhost:11379 at 14:47:03.856
  starting worker pid=23938 on localhost:11379 at 14:47:04.643
  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 23883
  Start run 2 on thread number 23938
  Run 1 DONE on thread number 23883
  Start run 3 on thread number 23883
  Run 2 DONE on thread number 23938
  Start run 4 on thread number 23938
  Run 3 DONE on thread number 23883
  Start run 5 on thread number 23883
  Run 4 DONE on thread number 23938
  Run 5 DONE on thread number 23883
  Run completed in 2.659s
  -- K = 4
  starting worker pid=24009 on localhost:11379 at 14:47:06.324
  starting worker pid=24082 on localhost:11379 at 14:47:07.054
  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 24009
  Start run 2 on thread number 24082
  Run 2 DONE on thread number 24082
  Start run 3 on thread number 24082
  Run 1 DONE on thread number 24009
  Start run 4 on thread number 24009
  Run 3 DONE on thread number 24082
  Start run 5 on thread number 24082
  Run 4 DONE on thread number 24009
  Run 5 DONE on thread number 24082
  Run completed in 2.649s
  -- K = 5
  starting worker pid=24234 on localhost:11379 at 14:47:09.024
  starting worker pid=24316 on localhost:11379 at 14:47:09.756
  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 24234
  Start run 2 on thread number 24316
  Run 1 DONE on thread number 24234
  Start run 3 on thread number 24234
  Run 2 DONE on thread number 24316
  Start run 4 on thread number 24316
  Run 3 DONE on thread number 24234
  Start run 5 on thread number 24234
  Run 4 DONE on thread number 24316
  Run 5 DONE on thread number 24234
  Run completed in 4.973s
  Total runtime: 12.588s
  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.265 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.22 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
  starting worker pid=24846 on localhost:11379 at 14:47:15.164
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 24846
  Run 1 DONE on thread number 24846
  ====== 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=25019 on localhost:11379 at 14:47:16.588
  starting worker pid=25094 on localhost:11379 at 14:47:17.301
  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 25019
  Start run 2 on thread number 25094
  Run 1 DONE on thread number 25019
  Run 2 DONE on thread number 25094
   Compute criterion
  Run time: 9.677s
  -- K = 3
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=26175 on localhost:11379 at 14:47:26.395
  starting worker pid=26238 on localhost:11379 at 14:47:27.142
  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 26175
  Start run 2 on thread number 26238
  Run 1 DONE on thread number 26175
  Run 2 DONE on thread number 26238
   Split a cluster in two
  starting worker pid=27017 on localhost:11379 at 14:47:35.406
  starting worker pid=27053 on localhost:11379 at 14:47:36.056
  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 27053
  Start run 1 on thread number 27017
  Run 2 DONE on thread number 27053
  Run 1 DONE on thread number 27017
   Compute criterion
  starting worker pid=27627 on localhost:11379 at 14:47:40.187
  starting worker pid=27668 on localhost:11379 at 14:47:40.973
  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 27627
  Start run 2 on thread number 27668
  Run 1 DONE on thread number 27627
  Run 2 DONE on thread number 27668
  starting worker pid=28759 on localhost:11379 at 14:47:51.504
  starting worker pid=28817 on localhost:11379 at 14:47:52.099
  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 28817
  Start run 1 on thread number 28759
  Run 1 DONE on thread number 28759
  Run 2 DONE on thread number 28817
  Run time: 35.986s
  Total runtime: 45.699s
  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: 7.494 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: 7.494 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
  starting worker pid=43505 on localhost:11379 at 14:50:03.442
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 43505
  Run 1 DONE on thread number 43505
  $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
  starting worker pid=44019 on localhost:11379 at 14:50:06.662
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 44019
  double free or corruption (out)
  ── 1. Error: summary works + run without paramStr for functional (@test.runWrapp
  error reading from connection
  1: mixtCompLearn(simData$dataLearn$matrix, simData$model$unsupervised, algo = createAlgo(nbBurnInIter = 25, 
         nbIter = 25, nbGibbsBurnInIter = 25, nbGibbsIter = 25), nClass = 2, nRun = 1, 
         hierarchicalMode = "no") at testthat/test.runWrapper.R:530
  2: classicLearn(data, model, algo, nClass, criterion, nRun, nCore, verbose, mode)
  3: rmcMultiRun(algo, dataList, model, list(), nRun, nCore, verbose)
  4: foreach(i = 1:nRun) %dopar% {
         if (verbose) 
             cat(paste0("Start run ", i, " on thread number ", Sys.getpid(), "\n"))
         resTemp <- rmc(algo, data, model, resLearn)
         class(resTemp) = "MixtComp"
         if (verbose) 
             cat(paste0("Run ", i, " DONE on thread number ", Sys.getpid(), "\n"))
         return(resTemp)
     }
  5: e$fun(obj, substitute(ex), parent.frame(), e$data)
  6: clusterApplyLB(cl, argsList, evalWrapper)
  7: dynamicClusterApply(cl, fun, length(x), argfun)
  8: recvOneResult(cl)
  9: recvOneData(cl)
  10: recvOneData.SOCKcluster(cl)
  11: unserialize(socklist[[n]])
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 439 | SKIPPED: 0 | WARNINGS: 4 | FAILED: 1 ]
  1. Error: summary works + run without paramStr for functional (@test.runWrapper.R#530) 
  
  Error: testthat unit tests failed
  Execution halted