Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] Java and R help

Mario de Frutos Dieguez

2005-07-05

Replies:

Im doing an aplication in Java and i have a program made in R what i
want to launch with Java.

I have the following instructions:

Runtime r = Runtime.getRuntime();
   
try
{

       System.out.println ("Llamada a R...");
       p = r.exec(sRutaR);
    }
    catch (IOException e)
    {
       System.out.println ("Error lanzando R: " + e.getMessage());
       e.printStackTrace();
    }
    catch (Exception ex)
    {
       System.out.println ("Error lanzando R!!!! " + ex.toString());
       ex.printStackTrace();
    }
}

and after that i wait for a file that R must to make called
terminado.dat. But when i launch the process the file doesn't create
until i destroy the process.

can anyone explain what's happend with the process?

Thx in advance and sorry for my poor english

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.