title: How to extract converge information in depmixs4 fit.mod in the form of 1 & 0?
body: <p>In package depmixs4, converge information of the HMM is shown in print(fit.mod).
  However I'm trying to extract the value. For instance, when it converges I get 1. When it doesn't I get 0.</p>
  
  <p>In this way when it doesn't converge I can automatically change to HMM with less states. 
  But I didn't find a solution in the manual. </p>
  
  <pre><code>    for(i in 3000:(length(p[,2])-252*5)){
    mod &lt;- depmix(p[(i):(252*5-1+i),2] ~ 1, data = p[(i):(252*5-1+i),], nstates = 3, family = gaussian())
    #set.seed(1)
    fit.mod &lt;- fit(mod)}
  </code></pre>
  
  <p>print(fit.mod) will get</p>
  
  <pre><code>print(fit.mod)
  Convergence info: 'maxit' iterations reached in EM without convergence. 
  'log Lik.' 3478.027 (df=14)
  AIC:  -6928.053 
  BIC:  -6856.109 
  </code></pre>
  
  <p>The problem is to extract the information "iterations reached in EM without convergence" as a number.</p>