* Execute R code block in existing *R* session
@ 2024-12-05 14:30 Naresh Gurbuxani
2024-12-05 15:14 ` William Denton
0 siblings, 1 reply; 2+ messages in thread
From: Naresh Gurbuxani @ 2024-12-05 14:30 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
With an inferior R process already running, executing an R code block (C-c C-c) prompts for a directory for new R session. Is it possible to tell org-mode to execute the code block in already running R session?
Sent from my iPhone
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Execute R code block in existing *R* session
2024-12-05 14:30 Execute R code block in existing *R* session Naresh Gurbuxani
@ 2024-12-05 15:14 ` William Denton
0 siblings, 0 replies; 2+ messages in thread
From: William Denton @ 2024-12-05 15:14 UTC (permalink / raw)
To: Naresh Gurbuxani; +Cc: emacs-orgmode@gnu.org
On Thursday, December 5th, 2024 at 09:30, Naresh Gurbuxani <naresh_gurbuxani@hotmail.com> wrote:
> With an inferior R process already running, executing an R code block (C-c C-c) prompts for a directory for new R session. Is it possible to tell org-mode to execute the code block in already running R session?
Is this what you're after? If the R process is in a buffer named *R:1* then you can use it like this:
#+begin_src R :session *R:1*
1
#+end_src
Bill
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-05 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-05 14:30 Execute R code block in existing *R* session Naresh Gurbuxani
2024-12-05 15:14 ` William Denton
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).