From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Kiermeier Subject: Re: org babel, ess, R Date: Mon, 3 Jul 2017 11:51:43 +0930 Message-ID: References: <87mv8o2u9b.fsf@nicolasgoaziou.fr> <3295F295-A14A-43EA-8752-53D1BEBCC31A@agrarianresearch.org> <87fuef1fov.fsf@nicolasgoaziou.fr> <829AC437-872D-453D-8543-B3C147F08B54@agrarianresearch.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b6ec4f79b950553606f40" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRr0O-0000iv-H0 for emacs-orgmode@gnu.org; Sun, 02 Jul 2017 22:22:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRr0N-00007L-DG for emacs-orgmode@gnu.org; Sun, 02 Jul 2017 22:22:28 -0400 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:36510) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRr0N-0008WL-2j for emacs-orgmode@gnu.org; Sun, 02 Jul 2017 22:22:27 -0400 Received: by mail-wr0-x232.google.com with SMTP id c11so227163866wrc.3 for ; Sun, 02 Jul 2017 19:22:25 -0700 (PDT) In-Reply-To: <829AC437-872D-453D-8543-B3C147F08B54@agrarianresearch.org> 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" To: Vikas Rawal Cc: org-mode mailing list , Nicolas Goaziou --94eb2c1b6ec4f79b950553606f40 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vikas, for what it's worth, I usually run two windows (in the same frame), side-by-side, with emacs maximised. On the left I have my org file and on the right I have an R session, which I start immediately after I open my org file. When I use C-c ' on an R source block, the org buffer (on the left) is replaced by by the source code edit buffer - leaving the R-session on the right untouched. That way I can either evaluate a whole code block (from org using C-c C-c) or go through the source code line-by-line (using ESS). Seems like that's what you want to do, too. Anyway, just my two cents worth, in case it helps. Cheers, AK On 3 July 2017 at 09:47, Vikas Rawal wrote: > > > > Vikas Rawal writes: > > > >> Isn=E2=80=99t is what most users need while editing the code block? Th= e > >> possibility of evaluating the code to test and see what happens? > > > > > > Many languages do not support sessions. So, the only possibility to > > evaluate the code is to evaluate the code block in the source buffer. > > > > Yes, what I am talking about is relevant only when a session is defined. > What I would like is that if in a file the session is defined, C-c=E2=80= =99 creates > a window configuration that shows the edit buffer and the session. In > other cases, the two windows could show the edit buffer and the original > org buffer. > > > Vikas > --94eb2c1b6ec4f79b950553606f40 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Vikas,
for w= hat it's worth, I usually run two windows (in the same frame), side-by-= side, with emacs maximised.
On the left I have my o= rg file and on the right I have an R session, which I start immediately aft= er I open my org file.
When I use C-c ' on an R= source block, the org buffer (on the left) is replaced by by the source co= de edit buffer - leaving the R-session on the right untouched.
That way I can either evaluate a whole code block (from org usi= ng C-c C-c) or go through the source code line-by-line (using ESS).
Seems like that's what you want to do, too.
Anyway, just my two cents worth, in case it helps.
Cheers,
AK

On 3 July 2017 at 09:47, Vikas Rawal <vikaslists@agrarianresearch.org> wrote:
>
> Vikas Rawal <vik= aslists@agrarianresearch.org> writes:
>
>> Isn=E2=80=99t is what most users need while editing the code block= ? The
>> possibility of evaluating the code to test and see what happens? >
>
> Many languages do not support sessions. So, the only possibility to > evaluate the code is to evaluate the code block in the source buffer.<= br> >

Yes, what I am talking about is relevant only when a session is defined. Wh= at I would like is that if in a file the session is defined, C-c=E2=80=99 c= reates
a window configuration that shows the edit buffer and the session. In other= cases, the two windows could show the edit buffer and the original org buf= fer.


Vikas

--94eb2c1b6ec4f79b950553606f40--