title: Caret package - "Something is wrong; all the RMSE metric values are missing"
body: <p>I'm trying to run the following code in R:</p>
  
  <p><code>mod_fit &lt;- train(Y ~ X1+X2....+Xn, family = "binomial", data =data,method="glm",trControl=ctrl,tuneLength=5)</code></p>
  
  <p>where <code>ctrl = trainControl(method="repeatedcv",number=10,savePredictions=TRUE)</code></p>
  
  <p>But I keep getting the error</p>
  
  <pre><code>Something is wrong; all the RMSE metric values are missing:
        RMSE        Rsquared  
   Min.   : NA   Min.   : NA  
   1st Qu.: NA   1st Qu.: NA  
   Median : NA   Median : NA  
   Mean   :NaN   Mean   :NaN  
   3rd Qu.: NA   3rd Qu.: NA  
   Max.   : NA   Max.   : NA  
   NA's   :1     NA's   :1    
  Error in train.default(x, y, weights = w, ...) : Stopping
  In addition: There were 12 warnings (use warnings() to see them)
  </code></pre>
  
  <p>Has anyone run into this error before?</p>
  
  <p>Data essentially looks like this:</p>
  
  <pre><code>Y      X1     X2   X3   X4
  
  1     10000   0    5    555
  0     25000   1    8    999
  </code></pre>