From: Sam <sam@crawf.uk>
To: "emacs-orgmode@gnu.org (emacs-orgmode@gnu.org)" <emacs-orgmode@gnu.org>
Subject: Org babel R command session
Date: Tue, 02 Jul 2024 10:46:18 +0000 [thread overview]
Message-ID: <20240702104618.Horde.21-qZi8i7lde_pU0hv8MY6F@drive.crawf.uk> (raw)
I just noticed an inconsistency between the way ob-R and ob-python
select executables. For python, there are 3 variables:
org-babel-python-command, org-babel-python-command-session and
org-babel-python-command-nonsession, with the former overriding the
latter two.
For R, there is only org-babel-R-command, which is ignored when running
as a session.
Is it worth trying to make the R functionality as similar as possible to
the python? If so then I'm happy to submit a patch doing just
that. However, I'm not sure what is the best way to handle giving
command-line arguments to the R interpreter when initialising a session,
because you need to set inferior-ess-program to the executable
specifically, and put any arguments in inferior-R-args.
Cheers,
Sam
next reply other threads:[~2024-07-02 10:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-02 10:46 Sam [this message]
2024-07-02 14:35 ` Org babel R command session Ihor Radchenko
2024-07-02 14:58 ` Sam Crawford
2024-07-02 15:11 ` Ihor Radchenko
2024-07-12 10:05 ` Ihor Radchenko
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=20240702104618.Horde.21-qZi8i7lde_pU0hv8MY6F@drive.crawf.uk \
--to=sam@crawf.uk \
--cc=emacs-orgmode@gnu.org \
/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).