title: Increasing the available memory to R process in Unix shell
body: <p>I run R process on my Unix OS which has 16 GB RAM. I am running an R session in which I am doing the below operation:</p>
  
  <p>I import a csv file which is around 350 MB in size into a data frame. 
  Then I run an operation on the data frame created above to select the top n products for each unique group.</p>
  
  <p>But, when I check the amount of memory this R session takes, it shows around 90% and then automatically the session gets killed. I am not much aware about the memory management in R on unix.
  Because, my system's OS has 16 GB RAM and my R session could have taken a maximum of 700 MB(350 MB for the imported CSV and 350 MB for the new data frame being created), then how is it possible that it uses 90% memory of the system and gets killed. Is there some default limit to the memory allocated to R process in Unix? If yes, can it be increased. Can anyone please suggest. I went through many posts similar to this but could not find any solution.</p>