How to connect R remote(KNIME) and R server under Windows environment

Hi Rajendra,

if you want to use the Scripting Integration nodes and Rserve, then follow the URL in the help of the node descrition:

https://github.com/knime-mpicbg/knime-scripting/wiki/R-server-for-knime

(I agree, this documentation needs some update/clarification... it is on our to do list...)

In brief:

on your windows machine:

- install KNIME, Scripting Integration nodes and R/R-Rstudio

- install and start Rserve (in R:  install.packages("Rserve"); library(Rserve); Rserve(args='--vanilla');)

- make sure that Rserve.exe is running in the task manager

- first, try your local Rserver: Preferences -> R-Scripting -> The host... type in "localhost". The port is 6311.

- drag and drop R snippet from Scripting Integration, connect to some input data and execute (sends data to Rserver and gets it back) -> green node? great! you have installed a local Rserver!

- second, install R and Rserve and start Rserve on your linux machine (see above)

- set host in preferences now to the IP address of your linux machine and try to execute the snippet again

- you might need to follow the instructions on the website mentioned above to get it running!?

Good luck!

Martin 

ps: I attached a screen shot of my preferences...

 

1 Like