[R] Running complete R script from Java

Romain Francois romain at r-enthusiasts.com
Fri Mar 5 18:23:41 CET 2010


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



More information about the R-help mailing list