* Send line to R process from babel block?
@ 2013-08-22 15:00 John Hendy
2013-08-22 15:34 ` Erik Iverson
0 siblings, 1 reply; 3+ messages in thread
From: John Hendy @ 2013-08-22 15:00 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Send line to R process from babel block?
2013-08-22 15:00 Send line to R process from babel block? John Hendy
@ 2013-08-22 15:34 ` Erik Iverson
2013-08-22 15:41 ` John Hendy
0 siblings, 1 reply; 3+ messages in thread
From: Erik Iverson @ 2013-08-22 15:34 UTC (permalink / raw)
To: John Hendy; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
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 <jw.hendy@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1434 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Send line to R process from babel block?
2013-08-22 15:34 ` Erik Iverson
@ 2013-08-22 15:41 ` John Hendy
0 siblings, 0 replies; 3+ messages in thread
From: John Hendy @ 2013-08-22 15:41 UTC (permalink / raw)
To: Erik Iverson; +Cc: emacs-orgmode
On Thu, Aug 22, 2013 at 10:34 AM, Erik Iverson <erikriverson@gmail.com> wrote:
> 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.
Awesome! Yes, that will do. I love that it's just mirroring the babel
block as well and I can save my final result back to the block with
=C-c '= or abort. For whatever reason I think I've run into this
before -- it's like the analog of C-c ` (backtick) for table editing.
I just didn't remember.
Thanks!
John
>
> --Erik
>
>
> On Thu, Aug 22, 2013 at 10:00 AM, John Hendy <jw.hendy@gmail.com> 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
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-22 15:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-22 15:00 Send line to R process from babel block? John Hendy
2013-08-22 15:34 ` Erik Iverson
2013-08-22 15:41 ` John Hendy
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).