konne / RserveCLI2

A fork of RServeCLI
Other
30 stars 21 forks source link

Unable to load R script using eval #47

Closed buddalasunil999 closed 6 years ago

buddalasunil999 commented 8 years ago

I have a R script on the server which has some functions in it. I want to load those functions into Rserve and use them in the eval. But when I load the script using source it fails.

Is there a way to load external script into rserve and use the functions defined in it.

s.VoidEval(string.Format("source(\"{0}\")", scriptPath)); var data = s.Eval(string.Format("processInput(\"{0}\")", csvPath));