title: use readOGR to load in a large spatial file in R
body: <p>For my processes in R I want to read in a 20 gigabyte file. I got it in a XML file type.</p>
  
  <p>In R I cannot load it in with readOGR since it is to big. It gives me the error cannot allocate vector 99.8 mb.</p>
  
  <p>Since my file is to big the logical next step in my mind would be to split the file. But since I can not open it in R and any other GIS package at hand, I can not split the file before I load it in. I am already using the best PC to my availability.</p>
  
  <p>Is there a solution?</p>
  
  <p>UPDATE BECAUSE OF COMMENT</p>
  
  <p>If I use head() my line looks like underneath. It does not work unfortunately. </p>
  
  <p>headfive &lt;- head(readOGR('file.xml', layer = 'layername'),5)</p>