From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: Re: org-babel strange html print in R Date: Tue, 11 Feb 2020 18:30:20 +0100 Message-ID: <87tv3xhw0j.fsf@gmail.com> References: <875zgjh8wn.fsf@gmail.com> <87blq5u2j9.fsf@gmail.com> <87r1z1xhc3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34491) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1ZMi-0000uz-5a for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 12:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1ZMf-0007gS-Fu for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 12:30:28 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:53297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1ZMe-0007cg-Su for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 12:30:25 -0500 Received: by mail-wm1-x334.google.com with SMTP id s10so4651600wmh.3 for ; Tue, 11 Feb 2020 09:30:23 -0800 (PST) In-Reply-To: <87r1z1xhc3.fsf@gmail.com> (Jack Kamm's message of "Tue, 11 Feb 2020 07:40:44 -0800") 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: Jack Kamm Cc: emacs-orgmode@gnu.org Hello, Thanks for the input. I didn't see the full mail of stardiviner for some reason. :results value html in the following code generates an error for me. (Org mode version 9.2.3,R version 3.6.2). but :results value output the "html" in an org-table format #+begin_src R :results value html library(xtable) x <- rnorm(100) y <- x + rnorm(100) print(xtable(summary(lm(y ~ x))),type="html") #+end_src Best regards, Jeremie Jack Kamm writes: > Hi, > > stardiviner writes: > >> You should try ~:results value html~. Here is what I got correctly: > > Yes, this seems like the best solution for this case. > > On the other hand, it would be desirable if ":results output" didn't > mangle the output, due to trying to clean up prompts. There is probably > some corner case out there where this is a more serious issue -- but for > this case, it seems best to just use ":results value html". > > I was planning to submit my implementation of ":session :results output" > that avoids the prompt mangling [0], but now I'm leaning towards putting > this off, until a more compelling case arises to justify it. > > [0] https://github.com/jackkamm/ob-session-async/blob/master/lisp/ob-session-async-R.el