title: alternative to passing large matrices in R
body: <p><a href="https://stackoverflow.com/questions/11677996/using-globals-instead-of-passing-large-arrays-in-matlab">Using Globals instead of passing large arrays in Matlab</a></p>
  
  <p>my question is precisely the same as the one above but I want an answer with respect to R. 
  I am right now passing huge matrices between functions. The data in the matrix is not changed in those functions. I just use the matrix. My code is running slow. I would like to know if there is an alternative like using globals or object oriented way. Thanks</p>