emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Frédéric Santos" <frederic.santos@u-bordeaux.fr>
To: emacs-orgmode@gnu.org
Subject: [BUG] ob-R: session evaluation returns empty ouputs with Org 9.6 [9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)]
Date: Wed, 30 Nov 2022 14:33:16 +0100	[thread overview]
Message-ID: <877czca7oj.fsf@u-bordeaux.fr> (raw)

Hi everyone,

With Org 9.6 released yesterday, I noticed a bug with ob-R: all R code
blocks with ":results output :session *R*" in the header will return no
output at all (although the code is correctly processed in the inferior
ESS buffer).

Steps to follow to reproduce the issue:

1. Create a minimal init.el file with this content (adapting paths if needed):

(add-to-list 'load-path "~/.emacs.d/elpa/org-9.6/")
(require 'org)
(add-to-list 'load-path "~/.emacs.d/elpa/ess-20221124.756/")
(require 'ess-site)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((org . t)
   (R . t)))

2. Open emacs -Q -l init.el

3. Create an Org document with this content:

#+begin_src R :results output :session *R*
x <- 2:4
print(x)
#+end_src

4. Try to evaluate the R code block: you'll only get an empty output.

Note that external eval (i.e., without the :session arg) still works as
expected, and that other results types (e.g., :results value) still work
as well.

Bug confirmed by other ESS users on the mailing list:
https://stat.ethz.ch/pipermail/ess-help/2022-November/013162.html

Version info:
============
Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-09-12
Org    : Org mode version 9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)
ESS    : ess-version: 18.10.3snapshot [elpa: 20221124.756]


             reply	other threads:[~2022-11-30 13:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30 13:33 Frédéric Santos [this message]
2022-11-30 22:47 ` [BUG] ob-R: session evaluation returns empty ouputs with Org 9.6 [9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)] Cook, Malcolm
2022-12-01  5:48 ` Ihor Radchenko
2022-12-01  6:26   ` William Denton
2022-12-01  1:48     ` Ihor Radchenko
2022-12-01  7:26       ` Frederic Santos
2022-12-01 16:34         ` Greg Minshall
2022-12-02  5:08           ` Ihor Radchenko
2022-12-01 21:18       ` Berry, Charles
2022-12-02  6:02       ` Ihor Radchenko
2022-12-03 22:06         ` Jeremie Juste
2022-12-06 23:40         ` Cook, Malcolm
2022-12-07 12:25           ` Ihor Radchenko
2022-12-07 17:50             ` Cook, Malcolm
2022-12-07 19:04               ` Jeremie Juste

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=877czca7oj.fsf@u-bordeaux.fr \
    --to=frederic.santos@u-bordeaux.fr \
    --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).