emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@health.ucsd.edu>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: "William Denton" <wtd@pobox.com>,
	"Frédéric Santos" <frederic.santos@u-bordeaux.fr>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] ob-R: session evaluation returns empty ouputs with Org 9.6 [9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)]
Date: Thu, 1 Dec 2022 21:18:02 +0000	[thread overview]
Message-ID: <68952C61-AD16-4863-BB46-24ECDA46AE8C@health.ucsd.edu> (raw)
In-Reply-To: <87fsdzuc61.fsf@localhost>



> On Nov 30, 2022, at 5:48 PM, Ihor Radchenko <yantar92@posteo.net> wrote:
> 
> William Denton <wtd@pobox.com> writes:
> 
>> I tried that, but it didn't fix it. :(
> 
> Ok. I was able to reproduce on my side.
> 
>> With a minimal setup, running the R block with a :session makes it ask where the 
>> working directory should be (the default in the prompt is the directory the test 
>> Org file is in).  Setting ess-startup-directory to 'default-directory doesn't 
>> change that, or the output problem.
> 
> It looks like there is something wrong with comint-prompt-regexp in R
> buffers. It somehow does not match the prompt.
> 
> I will need to look further.
> 

The older (commit bed47b437d8cde7a98bafdb07996e248b40f70e6e) version of org-babel-comint-with-output used comint-prompt-regexp and works fine.

I don't really follow how `org-babel-comint-prompt-separator` gets set to something useful in the current version. 

Reverting org-babel-comint-with-output to that older commit (and eval-ing the defun for org-babel-R-evaluate-session) seems to fix this case for those who need `:results output` in R src blocks till this gets sorted out.

HTH,

Chuck


  parent reply	other threads:[~2022-12-01 21:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=68952C61-AD16-4863-BB46-24ECDA46AE8C@health.ucsd.edu \
    --to=ccberry@health.ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=frederic.santos@u-bordeaux.fr \
    --cc=wtd@pobox.com \
    --cc=yantar92@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).