Package org.rosuda.JRI

Examples of org.rosuda.JRI.Rengine.waitForR()


        System.out.println("Press <Enter> to continue (time to attach the debugger if necessary)");
        try { System.in.read(); } catch(Exception e) {};
        System.out.println("Creating Rengine (with arguments)");
    Rengine re=new Rengine(args, true, new TextConsole2());
        System.out.println("Rengine created, waiting for R");
        if (!re.waitForR()) {
            System.out.println("Cannot load R");
            return;
        }
    System.out.println("re-routing stdout/err into R console");
    System.setOut(new PrintStream(new RConsoleOutputStream(re, 0)));
View Full Code Here


    //    (that's the "false" as second argument)
    // 3) the callbacks are implemented by the TextConsole class above
    Rengine re=new Rengine(args, false, new TextConsole());
        System.out.println("Rengine created, waiting for R");
    // the engine creates R is a new thread, so we should wait until it's ready
        if (!re.waitForR()) {
            System.out.println("Cannot load R");
            return;
        }

    /* High-level API - do not use RNI methods unless there is no other way
View Full Code Here

    //    (that's the "false" as second argument)
    // 3) the callbacks are implemented by the TextConsole class above
    Rengine re=new Rengine(args, false, new TextConsole());
        System.out.println("Rengine created, waiting for R");
    // the engine creates R is a new thread, so we should wait until it's ready
        if (!re.waitForR()) {
            System.out.println("Cannot load R");
            return;
        }

    /* High-level API - do not use RNI methods unless there is no other way
View Full Code Here

    //    (that's the "false" as second argument)
    // 3) the callbacks are implemented by the TextConsole class above
    Rengine re=new Rengine(args, false, new TextConsole());
        System.out.println("Rengine created, waiting for R");
    // the engine creates R is a new thread, so we should wait until it's ready
        if (!re.waitForR()) {
            System.out.println("Cannot load R");
            return;
        }

    /* High-level API - do not use RNI methods unless there is no other way
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.