emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <william@williamdenton.org>
To: Naresh Gurbuxani <naresh_gurbuxani@hotmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Execute R code block in existing *R* session
Date: Thu, 05 Dec 2024 15:14:47 +0000	[thread overview]
Message-ID: <Y5e7FBZapC9GMpHFdpljLjIwmdSM0eYT-Kd87NnId0hRDokgU8Jatd9k0nqsnK6MpnsbE9Ty94VMqhW7-x3-tSLvOxTj3Z-FaSMhBz0xtPw=@williamdenton.org> (raw)
In-Reply-To: <IA1P223MB0499D4771F0CC1BA1F8B201AFA302@IA1P223MB0499.NAMP223.PROD.OUTLOOK.COM>

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



      reply	other threads:[~2024-12-05 15:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-05 14:30 Execute R code block in existing *R* session Naresh Gurbuxani
2024-12-05 15:14 ` William Denton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Y5e7FBZapC9GMpHFdpljLjIwmdSM0eYT-Kd87NnId0hRDokgU8Jatd9k0nqsnK6MpnsbE9Ty94VMqhW7-x3-tSLvOxTj3Z-FaSMhBz0xtPw=@williamdenton.org' \
    --to=william@williamdenton.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=naresh_gurbuxani@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).