This page describes how to increase the memory available in R, and how to start an RServe R server..
Start the R process with 5G max of memory (for dynamically allocated vectors):
Start RServe on port 7001:
The server should respond:
... Rserve: Ok, ready to answer queries.
If you see a message about ports being already used, look for Rserve-bin.so processes and kill them. Then repeat the steps.