title: Create a very large Sparse Matrix in R
body: <p>I am trying to create a large sparse matrix, 10^5 by 10^5 in R, but am running into memory issues.</p>
  
  <pre><code>&gt; Matrix(nrow=1e5,ncol=1e5,sparse=TRUE)
  Error in Matrix(nrow = 1e+05, ncol = 1e+05, sparse = TRUE) : 
    too many elements specified
  </code></pre>
  
  <p>It looks like this is because the number of elements is larger than 2^31, which is the maximum integer value. But I am running this on a 64 bit machine.</p>
  
  <pre><code>&gt; .Machine$integer.max
  [1] 2147483647
  </code></pre>
  
  <p>Is there any way to create such a large, sparse matrix?</p>