From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: Re: Evaluating R source code line by line Date: Sat, 13 Dec 2014 11:12:05 +0100 Message-ID: <86y4qbkgei.fsf@me.localhost.invalid> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzjgR-00056R-A3 for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 05:12:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzjgJ-0007Ls-D4 for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 05:12:19 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:60431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzjgJ-0007Lc-6d for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 05:12:11 -0500 Received: from mfilter8-d.gandi.net (mfilter8-d.gandi.net [217.70.178.137]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 9146EA80B9 for ; Sat, 13 Dec 2014 11:12:09 +0100 (CET) Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter8-d.gandi.net (mfilter8-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 6BLnNfZHTCwZ for ; Sat, 13 Dec 2014 11:12:07 +0100 (CET) Received: from localhost.invalid (host53-18-static.13-188-b.business.telecomitalia.it [188.13.18.53]) (Authenticated sender: me@toel.it) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 34A0CA80DB for ; Sat, 13 Dec 2014 11:12:06 +0100 (CET) In-Reply-To: (Vikas Rawal's message of "Sat, 13 Dec 2014 07:56:44 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list Hello, Vikas Rawal writes: > I have an R source code blocks called with the ":results value=E2=80=9D > option. I evaluate the code with C-c. When I do that, in my R session > buffer, I get to see several + + + until the final value is obtained, > and then the final value is shown, and inserted in my Org buffer. > > I was wondering if there is an option somewhere that will allow me to > instead see how each line in my R source code is evaluated. That is, > the R session buffer should show each line being evaluated, and then > show the final value as usual. Look at: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html Use ESS to step through evaluation line-by-line Use C-c ' to visit the edit buffer for your code block Use ess-eval-line-and-step to evaluate each line in turn =20 ess-eval-line-and-step is usually bound to C-c C-n I guess that is possible to use the same R session by configuring the session arguments and/or the ESS settings but I have not done it yet. If you do not have ESS you can try a more lightweight solution with isend-mode. Best, Daniele