emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] ob-R: session evaluation returns empty ouputs with Org 9.6 [9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)]
@ 2022-11-30 13:33 Frédéric Santos
  2022-11-30 22:47 ` Cook, Malcolm
  2022-12-01  5:48 ` Ihor Radchenko
  0 siblings, 2 replies; 15+ messages in thread
From: Frédéric Santos @ 2022-11-30 13:33 UTC (permalink / raw)
  To: emacs-orgmode

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]


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-12-07 19:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 13:33 [BUG] ob-R: session evaluation returns empty ouputs with Org 9.6 [9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)] Frédéric Santos
2022-11-30 22:47 ` 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

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).