title: Lasso in R: cv.glmnet() running extremely slowly
body: <p>I have a 7187x4877 dataframe in R. I've converted it to a matrix successfully and am trying to run cv.glmnet(). It's been running for over 20 minutes. The size of the matrix is 268 mb. </p>
  
  <p>This is the 3rd time I've tried running it. The previous times, I've had to use my task manager to exit RStudio because it wouldn't close otherwise. Any suggestions? </p>
  
  <pre><code>trainx &lt;- as.matrix(train[,-4710])
  trainy &lt;- as.matrix(train[,4710])
  
  cv.lasso &lt;- cv.glmnet(trainx, trainy, alpha = 1)
  </code></pre>