[R] Run R in server web

2010-01-02 Thread Jiiindo
Colleagues, I have a web server (appache Tomcat), and my web application (java-jsp..) run on it, how i can run R on server example, i want running R on server, and save output on server Thanks -- View this message in context: http://n4.nabble.com/Run-R-in-server-web-tp997126p997126.html Sent

[R] trouble with installing SJava

2010-01-12 Thread Jiiindo
Colleagues, How i can solve this error when i install SJava package Thanks R CMD INSTALL -c /usr/local/lib/R/SJava_0.69-0.tar.gz * installing to library ‘/usr/local/lib/R/site-library’ * installing *source* package ‘SJava’ ... checking for java... /usr/lib/jvm/java-6-sun/bin/jav

[R] call R with un expression (String)?

2010-01-15 Thread Jiiindo
Hello all, I want to call R from java. And I have a expression in Java as a String, example : (variable 1 + variable 2)* variable 3 and i want R calculate this expression. How can I do? ex: Java -int x1,x2; -float x3; -String s=( x1.toString()+x2.toString() ) * x3.toString(); R: calculate e

[R] Cannot load RInterpreter (SJava)

2010-01-18 Thread Jiiindo
Hello, I write a test for call R function from Java by Eclipse. When i run it, raise a error: Loading RInterpreter library Exception in thread "main" java.lang.UnsatisfiedLinkError: no RInterpreter in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at

[R] Error on start R in server

2010-02-08 Thread Jiiindo
Hello all, (Thank for your reply) I have a web-application in Apache Tomcat, when i start R in this application, I used packe RSJava Code ROmegahatInterpreter interp; String [] rargs = {"--no-save"}; REvaluator e; interp = new ROmegahatInterpreter ( ROmegahatInterpreter.f

Re: [R] Error on start R in server

2010-02-08 Thread Jiiindo
Thanks for your answer, I can run it with an application Java normal. In my web-application, when i need, i start R et calling R function (new REvaluator).eval("1+1") to calcule an expression "1+1"example. And output of your code: Loading RInterpreter library Load the Java VM with .JavaInit() R v