I installed R Essentials for SPSS V20 and it works great. However, I have R code that takes 6-8 hrs to run on each file, and I have to process 16 files. Currently, I run each file/code combo in a separate instance of R so they run in parallel on different processors. Does anyone know of a way to start multiple instances of R from within SPSS instead of single-thread like examples in docs???
This topic has been locked.
Pinned topic Multithreading R Essentials for SPSS V20???
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Re: Multithreading R Essentials for SPSS V20???2011-11-30T20:09:08ZThis is the accepted answer. This is the accepted answer.A possibility may be to drive the R Plug-in from Python, using the Python Plug-in in external mode. The Python Plug-in starts up an instance of the SPSS Statistics backend which allows you to submit syntax, so in particular you can submit an R program block (BEGIN PROGRAM R - END PROGRAM) from Python. You could have separate instances of Python, which would then start up separate instances of the SPSS Statistics backend. One limitation to this approach is that there is no SPSS Statistics front-end, thus no Output Viewer.
For reference, the Python Plug-in is installed with Essentials for Python.
Re: Multithreading R Essentials for SPSS V20???2011-12-01T14:34:06ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK