From: William Denton <william@williamdenton.org>
To: Esteban Venialgo <tetumetal@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: R session error (org-babel)
Date: Thu, 07 Mar 2024 00:30:03 +0000 [thread overview]
Message-ID: <CoJhoieXjpf8OkyBNy2jIEf3wwS74pX9NDV2VsBcvU5eJdyzV4oo2-o_bVD3i2eJuN3jNAl0Gap1bmMgdCDgPXuyxfJ8NcfqXPHSoEIbf3c=@williamdenton.org> (raw)
In-Reply-To: <20240306105856.zxa6rs7swpez4a77@amd_server>
On Wednesday, March 6th, 2024 at 05:56, Esteban Venialgo <tetumetal@posteo.net> wrote:
> I tried the =emacs -Q=, and still get the same problem. Before exporting the code, I ran this lisp from the scratch pad:
>
> ;; enable language support for R
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((R . t)
> (shell . t)
> (latex . t)
> (emacs-lisp . nil)))
Hmm! It does work for me. I'm on Ubuntu 22.04, running Emacs and Org from the development tree (so 30.0.50 and 9.7-pre).
I ran =emacs -Q= (and also =make repro= from in the Org source tree, which is another useful tool for testing), and executed these lines in a scratch buffer:
# -----
(org-babel-do-load-languages 'org-babel-load-languages '(
(R . t)
(shell . t)
))
(add-to-list 'load-path "~/.emacs.d/elpa/ess-20240229.2054")
(require 'ess-r-mode)
# -----
We're the same up to ESS. (I had to check the version number on ESS to get the path right, but that's the latest release installed.) Looking back, did you not mention using ESS? I've never used R in Emacs without it. If you weren't using ESS, what happens if you install it and use it?
Just for the sake of documentation: then I made an r.org file with the snippet and ran it, and it worked:
# ----
#+begin_src R :session test
A <- 1
#+end_src
#----
Cheers,
Bill
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
next prev parent reply other threads:[~2024-03-07 0:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 14:12 R session error (org-babel) Esteban Venialgo
2024-03-06 6:21 ` William Denton
2024-03-06 10:58 ` Esteban Venialgo
2024-03-07 0:30 ` William Denton [this message]
2024-03-19 15:45 ` Esteban Venialgo
2024-03-06 10:42 ` 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='CoJhoieXjpf8OkyBNy2jIEf3wwS74pX9NDV2VsBcvU5eJdyzV4oo2-o_bVD3i2eJuN3jNAl0Gap1bmMgdCDgPXuyxfJ8NcfqXPHSoEIbf3c=@williamdenton.org' \
--to=william@williamdenton.org \
--cc=emacs-orgmode@gnu.org \
--cc=tetumetal@posteo.net \
/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).