[R] Java and R help

Mario de Frutos Dieguez marfru at cartif.es
Tue Jul 5 18:24:15 CEST 2005

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();

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

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

More information about the R-help mailing list