From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Kamm Subject: Re: org-babel strange html print in R Date: Fri, 07 Feb 2020 17:30:37 -0800 Message-ID: <874kw1uapu.fsf@gmail.com> References: <875zgjh8wn.fsf@gmail.com> <3215656.Ko1QCt5if5@ylum> <878sle1mec.fsf@gmail.com> <87pneqnecb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50018) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0EzF-0001lZ-0P for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 20:32:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0EzE-0005DD-0D for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 20:32:44 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:39563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0EzD-0005Bl-PR for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 20:32:43 -0500 Received: by mail-pj1-x1034.google.com with SMTP id e9so1656991pjr.4 for ; Fri, 07 Feb 2020 17:32:43 -0800 (PST) In-Reply-To: <87pneqnecb.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Jeremie Juste Cc: emacs-orgmode@gnu.org Hi Jeremie, > Thanks for the info. > Unfortunately I couldn't identify the issue > I updated R and org (org 9.3.2, R 3.6.2). > but I'm still getting [the error] Sorry, I missed the initial property line where you set the ":session" header argument. When I set the ":session" header argument, I get the original buggy behavior that you report. It looks like the reason for this, is that the substrings like "tr>" match `comint-prompt-regexp', and so get stripped out by `org-babel-comint-with-output'. I think a more reliable implementation would be to avoid `org-babel-comint-with-output', and take the approach used in the ":results value" case, which reads the output from a temp file instead of directly from the shell. Actually, that's the approach I use in my ob-session-async package [0], which re-implements ob-R sessions to allow async evaluation. It doesn't suffer from the bug you are reporting. I'll plan to extract that implementation and submit it as a patch here. Long term, I am intending to contribute the full functionality in ob-session-async here, but that's still a ways off. [0] https://github.com/jackkamm/ob-session-async Jack