From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Send line to R process from babel block? Date: Thu, 22 Aug 2013 10:34:55 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149d0aefa59bc04e48b09a6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCWv3-00060u-Hd for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 11:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCWv0-0005dO-NT for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 11:35:29 -0400 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:54195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCWv0-0005dF-Id for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 11:35:26 -0400 Received: by mail-ob0-f178.google.com with SMTP id ef5so3898866obb.37 for ; Thu, 22 Aug 2013 08:35:25 -0700 (PDT) In-Reply-To: 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: John Hendy Cc: emacs-orgmode --089e0149d0aefa59bc04e48b09a6 Content-Type: text/plain; charset=ISO-8859-1 John, Do you know about creating an indirect buffer with the current source block? This indirect buffer will be in ESS mode, and any changes you make will be in the original source block when you exit the indirect buffer. I believe C-c ' in a source block will activate the indirect buffer. There are variables controlling how the resulting window is created. --Erik On Thu, Aug 22, 2013 at 10:00 AM, John Hendy wrote: > If one opens file.R and does =C-RET= on a line, it sends it to the > current ESS R process running (or starts a new process and then sends > the line). > > Is this possible from babel blocks? I would find this extremely > helpful when troubleshooting in order to run lines of code up to my > problem spot vs. my current practice of copying, switching buffers, > then yanking into the R session buffer. > > Is this already possible? I looked around at some of the completions > for =M-x org-babel-*=, but didn't see anything promising. > > > Thanks, > John > > --089e0149d0aefa59bc04e48b09a6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
John,

Do you know about creating an indirect = buffer with the current source block? This indirect buffer will be in ESS m= ode, and any changes you make will be in the original source block when you= exit the indirect buffer.

I believe C-c ' in a source block will activate the indi= rect buffer. There are variables controlling how the resulting window is cr= eated.

--Erik


On Thu, Aug 22, 2013 at 10:00 AM, John H= endy <jw.hendy@gmail.com> wrote:
If one opens file.R and does =3DC-RET=3D on a line, it sends it to the
current ESS R process running (or starts a new process and then sends
the line).

Is this possible from babel blocks? I would find this extremely
helpful when troubleshooting in order to run lines of code up to my
problem spot vs. my current practice of copying, switching buffers,
then yanking into the R session buffer.

Is this already possible? I looked around at some of the completions
for =3DM-x org-babel-*=3D, but didn't see anything promising.


Thanks,
John


--089e0149d0aefa59bc04e48b09a6--