Is there a way to run several RLink computations via REvaluate[] in parallel, e.g. with ParallelTable[]?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
It is actually possible, if you run several copies of RLink in parallel. This would mean several parallel kernels, R and JVM processes. Here is an example (I have 6 cores):
and then,
while for a single core, we get:
and then
The more computationally intensive is a single call to R functions, the more you will see the speed benefit of parallelization. Since R is vectorized and also based on immutable expressions, it should be relatively easy to write R functions is a way which would be easy to parallelize and use with parallel Mathematica functionality. |
|||||||||||
|
|
No, this is not possible. If you need parallelization, use the parallelization possibilities in R. |
|||||||||||
|

