Running ‘testthat.R’ [5m/24m]
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=14682 on localhost:11957 at 16:16:11.041
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 14682
  Run 1 DONE on thread number 14682
   Compute criterion
  Run time: 3.123s
  -- K = 3
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=15226 on localhost:11957 at 16:16:13.871
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 15226
  Run 1 DONE on thread number 15226
   Split a cluster in two
  starting worker pid=15501 on localhost:11957 at 16:16:16.265
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 15501
  Run 1 DONE on thread number 15501
   Compute criterion
  starting worker pid=15837 on localhost:11957 at 16:16:19.206
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 15837
  Run 1 DONE on thread number 15837
  starting worker pid=16019 on localhost:11957 at 16:16:22.107
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 16019
  Run 1 DONE on thread number 16019
  Run time: 10.723s
  -- K = 4
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=16159 on localhost:11957 at 16:16:24.687
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 16159
  Run 1 DONE on thread number 16159
   Split a cluster in two
  starting worker pid=16540 on localhost:11957 at 16:16:27.386
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 16540
  Run 1 DONE on thread number 16540
   Compute criterion
  starting worker pid=17067 on localhost:11957 at 16:16:30.196
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 17067
  Run 1 DONE on thread number 17067
  starting worker pid=17618 on localhost:11957 at 16:16:33.191
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 17618
  Run 1 DONE on thread number 17618
  starting worker pid=18076 on localhost:11957 at 16:16:36.022
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 18076
  Run 1 DONE on thread number 18076
  Run time: 13.865s
  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=34847 on localhost:11957 at 16:27:40.143
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 34847
  Run 1 DONE on thread number 34847
  Run completed in 2.601s
  Total runtime: 2.654s
  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=35647 on localhost:11957 at 16:27:46.425
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 35647
  Run 1 DONE on thread number 35647
  Run completed in 2.6s
  Total runtime: 2.666s
  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=36140 on localhost:11957 at 16:27:52.247
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 36140
  Run 1 DONE on thread number 36140
  Run completed in 2.205s
  Total runtime: 2.297s
  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=36578 on localhost:11957 at 16:27:57.592
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 36578
  Run 1 DONE on thread number 36578
  Run completed in 2.614s
  Total runtime: 2.691s
  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=38482 on localhost:11957 at 16:28:15.707
  starting worker pid=38564 on localhost:11957 at 16:28:17.227
  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 38482
  Start run 2 on thread number 38564
  Run 2 DONE on thread number 38564
  Start run 3 on thread number 38564
  Run 1 DONE on thread number 38482
  Start run 4 on thread number 38482
  Run 3 DONE on thread number 38564
  Start run 5 on thread number 38564
  Run 4 DONE on thread number 38482
  Run 5 DONE on thread number 38564
  Run completed in 6.633s
  -- K = 3
  starting worker pid=38754 on localhost:11957 at 16:28:22.198
  starting worker pid=38863 on localhost:11957 at 16:28:23.765
  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 38863
  Start run 1 on thread number 38754
  Run 2 DONE on thread number 38863
  Start run 3 on thread number 38863
  Run 1 DONE on thread number 38754
  Start run 4 on thread number 38754
  Run 4 DONE on thread number 38754
  Start run 5 on thread number 38754
  Run 3 DONE on thread number 38863
  Run 5 DONE on thread number 38754
  Run completed in 7.52s
  -- K = 4
  starting worker pid=39195 on localhost:11957 at 16:28:29.931
  starting worker pid=39318 on localhost:11957 at 16:28:31.452
  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 39318
  Start run 1 on thread number 39195
  Run 2 DONE on thread number 39318
  Start run 3 on thread number 39318
  Run 1 DONE on thread number 39195
  Start run 4 on thread number 39195
  Run 4 DONE on thread number 39195
  Start run 5 on thread number 39195
  Run 3 DONE on thread number 39318
  Run 5 DONE on thread number 39195
  Run completed in 7.908s
  -- K = 5
  starting worker pid=39708 on localhost:11957 at 16:28:37.590
  starting worker pid=39859 on localhost:11957 at 16:28:38.828
  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 39708
  Start run 2 on thread number 39859
  Run 2 DONE on thread number 39859
  Start run 3 on thread number 39859
  Run 1 DONE on thread number 39708
  Start run 4 on thread number 39708
  Run 4 DONE on thread number 39708
  Start run 5 on thread number 39708
  Run 3 DONE on thread number 39859
  Run 5 DONE on thread number 39708
  Run completed in 13.533s
  Total runtime: 35.595s
  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: 1.184 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.706 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=41086 on localhost:11957 at 16:28:54.376
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 41086
  Run 1 DONE on thread number 41086
  ====== 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=41435 on localhost:11957 at 16:28:58.298
  starting worker pid=41551 on localhost:11957 at 16:29:00.040
  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 41435
  Start run 2 on thread number 41551
  Run 1 DONE on thread number 41435
  Run 2 DONE on thread number 41551
   Compute criterion
  Run time: 33.653s
  -- K = 3
  Number of splits to perform: 2
   Split a cluster in two
  starting worker pid=43756 on localhost:11957 at 16:29:31.966
  starting worker pid=44009 on localhost:11957 at 16:29:33.561
  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 43756
  Start run 2 on thread number 44009
  Run 2 DONE on thread number 44009
  Run 1 DONE on thread number 43756
   Split a cluster in two
  starting worker pid=46077 on localhost:11957 at 16:29:59.117
  starting worker pid=46249 on localhost:11957 at 16:30:00.618
  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 46249
  Start run 1 on thread number 46077
  Run 2 DONE on thread number 46249
  Run 1 DONE on thread number 46077
   Compute criterion
  starting worker pid=47363 on localhost:11957 at 16:30:12.572
  starting worker pid=47532 on localhost:11957 at 16:30:14.004
  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 47532
  Start run 1 on thread number 47363
  Run 2 DONE on thread number 47532
  Run 1 DONE on thread number 47363
  starting worker pid=2198 on localhost:11957 at 16:30:47.125
  starting worker pid=2431 on localhost:11957 at 16:30:48.624
  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 2198
  Start run 2 on thread number 2431
  Run 1 DONE on thread number 2198
  Run 2 DONE on thread number 2431
  Run time: 110.18s
  Total runtime: 143.871s
  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: 28.663 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: 28.663 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=47748 on localhost:11957 at 16:38:41.880
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 47748
  Run 1 DONE on thread number 47748
  $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=48587 on localhost:11957 at 16:38:51.794
  Loading required package: RMixtCompIO
  loaded RMixtCompIO and set parent environment
  Start run 1 on thread number 48587
  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