You can source the script, e.g run the command :

eval( "source( '" + script + "') " ) ;

Questions about rJava/JRI are better on the stats-rosuda-devel mailing list:
http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel

Romain

On 03/05/2010 03:51 AM, Ralf B wrote:

Is it possible to run a R script from Java (via JRI (part of rJava):
http://www.rforge.net/rJava/) without adding it line by line into a
JRI java application?

Ralf

--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to