qlik-oss / sse-r-plugin

A Qlik server-side extension plugin for accessing R.
MIT License
67 stars 71 forks source link

Loading RStudio and RServe() using the SSEtoRserve.exe.config #44

Open mssqlsage opened 6 years ago

mssqlsage commented 6 years ago

Hi everyone,

I'm looking to get the SSEtoRServe Plugin running automatically upon server startup. I've referenced:

https://github.com/qlik-oss/sse-r-plugin/blob/master/GetStarted.md#configure-ssetorserve

For the parameters in the config file, and gotten RStudio to load successfully using the following:

setting name="rProcessPathToStart" serializeAs="String" value>D:\Program Files\RStudio\bin\rstudio.exe /setting

However, I also need to initialize RServe(), which I haven't found a way to do; is there a way using the rserveInitScript parameter ? any other advice would be welcome as well.

Thanks, Jeff

tobiaslindulf commented 6 years ago

Hi, sorry for late reply. There is actually no need to start RStudio since that is more or less only the GUI. It is enough to start RServe. See below instructions, I hope it helps: rProcessPathToStart : Default empty (no additional action, SSEtoRserve assumes that Rserve is running already). If you want SSEtoRserve to start any R process during startup then set it to i.e. C:\Program Files\R\R-3.3.3\bin\x64\Rserve.exe or C:\Program Files\Microsoft\R Open\bin\x64\Rterm.exe or C:\Program Files\R\R-3.3.3\bin\x64\Rterm.exe , depending on what you want to run and where it is located in the machine. If the process dies then SSEtoRserve will try to start it again after ~10 seconds.