From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: org-babel strange html print in R Date: Wed, 12 Feb 2020 15:05:02 +0800 Message-ID: <878sl8e13b.fsf@gmail.com> References: <875zgjh8wn.fsf@gmail.com> <87blq5u2j9.fsf@gmail.com> <87r1z1xhc3.fsf@gmail.com> <87tv3xhw0j.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1m6g-00012s-Mn for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 02:06:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1m6f-00014y-Hs for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 02:06:46 -0500 Received: from [112.17.247.90] (port=61780 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j1m6d-000129-L0 for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 02:06:45 -0500 In-reply-to: <87tv3xhw0j.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: Jack Kamm , emacs-orgmode@gnu.org =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeremie Juste writes: > Hello, > > Thanks for the input. > I didn't see the full mail of stardiviner for some reason. About this, I found Gmail put my emails into Spams folder. I can't figure o= ut what reasons. I also found similar situations in some people in Emacs-help = guys. Anyway, If you can, please report my emails "Not Spam". Thanks :) > > :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=3D"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-ses= sion-async-R.el =2D --=20 [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5Do/gUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsN8ewf/YkjUlLOAAAtpBRgOdIZg2N0JKxVt vwXxH5G+5VOJNgH0avDRrGnI+2r5Kooqs0lpfIjoy5yi9tkG9Z4GShKa2iYP2wLA hbsN0OJxZ3ChdCjbyW2ABNdzCVL6T3oremxy8DzdZGrM2sSmFFSKK+N8s/PI7IJP 2wE7jjUCoNFcB6XGodcZiRXE+Ms/k1gPfzyJxvbeOdX1GQriQE8ecofEpomkz3F0 VQZ/sgec9mAsKZMC9054H0br5DT1c3Wo/DnaKnVpw24wrwWyMJSj02XSau+GIFLq 3hAx01mrP4ud7aUs/TnwCfaVrvH0i/4iO+KhJr6KyZB2gPMTXTs4nuf5Zw=3D=3D =3DdAR8 =2D----END PGP SIGNATURE-----