<div dir="ltr">I've got an existing codebase that has its own huge matrix in shared memory (an array of double, column-major), and for part of the computation I want to pass it to R.<div><br></div><div>I've managed to get it working with RInside & Rcpp, but only by copying the data into an Rcpp::NumericMatrix. My question is whether there's any way to wrap the existing memory such that it's available read-only (enforced by R or not). Even better if it's possible to do so with a subset of columns.</div><div><br></div><div>I was about to look at the bigmemory package for guidance but wanted to check first to see if this isn't easy somehow.</div><div><br></div><div>thanks,<br>Todd</div></div>