I have a Java program calling a R script using JRI.
On calling re.eval("setMatValue('" + id + "'," + x + "," + y + "," + value + ")");
i get a java out of memory exception which is strange to me as neither the function in R is returning a value of any kind, nor am i mapping the (not existing) result to a java object. The matrices are only stored in the R context and referrenced by strings.
Is the Memory used by R included into the Java Heap? Or is JRI allocating space that actually isn't needed?
For the greater scope: I am trying to outsource the handling of the matrices used by my Code Analyzation implemented in Java to R. The matrices get very big, and therefore were taking up too much space in java, and I didn't find any matrix implementation in java able to create matrices of that size.