all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Esteban Venialgo <tetumetal@posteo.net>
To: William Denton <william@williamdenton.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: R session error (org-babel)
Date: Tue, 19 Mar 2024 15:45:15 +0000	[thread overview]
Message-ID: <20240319154515.knjurfbsy7v2x27g@amd_server> (raw)
In-Reply-To: <CoJhoieXjpf8OkyBNy2jIEf3wwS74pX9NDV2VsBcvU5eJdyzV4oo2-o_bVD3i2eJuN3jNAl0Gap1bmMgdCDgPXuyxfJ8NcfqXPHSoEIbf3c=@williamdenton.org>

hi William and Ihor,

Apologies for the late answer. I did some test on ESS and indeed that was the problem:

I was using: org version 9.6.17 and ess-version: 18.10.2. But, after I updated Gentoo (last weekend), the R code export worked fine! The current ESS version is: 24.01.1 and the org-version is the same.

   Thanks a lot for your help, Tetumetal

On 2024-03-07 00:30:03, William Denton wrote:
> 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


  reply	other threads:[~2024-03-19 15:43 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
2024-03-19 15:45       ` Esteban Venialgo [this message]
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

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

  git send-email \
    --in-reply-to=20240319154515.knjurfbsy7v2x27g@amd_server \
    --to=tetumetal@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=william@williamdenton.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.