Package com.oracle.truffle.r.runtime.RContext

Examples of com.oracle.truffle.r.runtime.RContext.ConsoleHandler.printf()


        @SlowPath
        private static void doBrowser(MaterializedFrame frame) {
            ConsoleHandler ch = RContext.getInstance().getConsoleHandler();
            REnvironment callerEnv = REnvironment.frameToEnvironment(frame.materialize());
            ch.printf("Called from: %s%n", callerEnv == REnvironment.globalEnv() ? "top level" : RArguments.getFunction(frame).getTarget());
            String savedPrompt = ch.getPrompt();
            ch.setPrompt(browserPrompt());
            try {
                LW: while (true) {
                    String input = ch.readLine();
View Full Code Here


                            int ix = RArguments.getDepth(frame);
                            Frame stackFrame;
                            while (ix >= 0 && (stackFrame = Utils.getStackFrame(FrameAccess.READ_ONLY, ix)) != null) {
                                RFunction fun = RArguments.getFunction(stackFrame);
                                if (fun != null) {
                                    ch.printf("where %d: %s%n", ix, fun.getTarget());
                                }
                                ix--;
                            }
                            ch.println("");
                            break;
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.