title: Cannot allocate vector in R of size 11.8 Gb
body: <p>I got this error "Cannot allocate vector in R of size 11.8 Gb" because my desktop has 8 gb ram and size of matrix what I used is 3000x52128. </p>
  
  <p>In here is any solution to avoid this memory error?
  Even though I tried to decrease size of matrix as 1500x52128, also I got same error and same size as 11.8 Gb.</p>
  
  <p>So what should I do? 
  Only one solution is to work on the computer with 16 gb ram?</p>
  
  <p>Addtional comment:<br/>
  when following commands are running, I got this error.</p>
  
  <pre><code>svmDS &lt;- read.csv("TrainDataSet_ver1.2.csv");
  model&lt;-naiveBayes(as.factor(class)~., data=svmDS)
  </code></pre>