snoweye / EMCluster

EM Algorithm for Model-Based Clustering of Finite Mixture Gaussian Distribution
Mozilla Public License 2.0
17 stars 0 forks source link

Warning: stack imbalance and Error: R_Reprotect: #1

Closed carloscinelli closed 7 years ago

carloscinelli commented 7 years ago

Hi, I was just trying the package and it gives the following error.

If you run the first time it throws a warning:

rm(list = ls())
library(EMCluster, quietly = TRUE)
set.seed(1234)
x <- da1$da
ret.em <- init.EM(x, nclass = 10, method = "em.EM")
# Warning: stack imbalance in '.Call', 16 then 8
# Warning: stack imbalance in '<-', 14 then 6

Then if you run it again it gives the error:

Warning: stack imbalance in '<-', 2 then -6
Error in (function (env, objName)  : 
  R_Reprotect: only 2 protected items, can't reprotect index -3
Error: R_Reprotect: only -3 protected items, can't reprotect index -4

Session Info:

               _                           
platform       x86_64-apple-darwin15.6.0   
arch           x86_64                      
os             darwin15.6.0                
system         x86_64, darwin15.6.0        
status                                     
major          3                           
minor          4.0                         
year           2017                        
month          04                          
day            21                          
svn rev        72570                       
language       R                           
version.string R version 3.4.0 (2017-04-21)
nickname       You Stupid Darkness         
snoweye commented 7 years ago

Thanks. Fixed and pushed to github.