From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: [org-babel R] Difference between output in RStudio and in Org Babel Date: Wed, 10 Dec 2014 16:36:18 -0500 Message-ID: <87oarb427h.fsf@gmail.com> References: <86h9x3r1f2.fsf@example.com> <87r3w7462j.fsf@gmail.com> <86y4qfgqzr.fsf_-_@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyovl-0002U9-RT for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 16:36:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xyovk-0005zv-R8 for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 16:36:21 -0500 Received: from mail-qc0-x229.google.com ([2607:f8b0:400d:c01::229]:54233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyovk-0005zl-Mc for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 16:36:20 -0500 Received: by mail-qc0-f169.google.com with SMTP id w7so2887990qcr.0 for ; Wed, 10 Dec 2014 13:36:20 -0800 (PST) In-Reply-To: <86y4qfgqzr.fsf_-_@example.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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: Org-mode Hi Seb, [re-adding the list to cc] 2014ko abenudak 10an, Sebastien Vauban-ek idatzi zuen: > > FYI, the link is a screen capture image, in this case, not a video! OK, now I feel sheepish. I assumed from the screencast.com URL that there was intended to be some video, for which the image displayed was just the (first/last/etc.) frame. Now I understand better. > With my example, what I expect is: >=20 > | | liste | nb | > |-----+----------------+----| > | abc | item31\nitem80 | 2 | > | def | item52 | 1 | There=E2=80=99s no convention in org tables that =E2=80=9C\n=E2=80=9D (i.e.= two characters, backslash + n) means newline (i.e. one character). > In this case, I'd expect the same as in RStudio; that is, no multi-line > cell, but simply a cell with a string in it -- which, yes, does contain > the \n character: What R=E2=80=99s console shows you (either RStudio or vanilla R) is a =E2= =80=9Chuman readable=E2=80=9D representation of the data frame, which includes doing things like changing the newline character into a \n escape sequence (and other stuff, like padding the columns with spaces so they all line up vertically). But when Org communicates with R, it asks for a machine-readable version, which doesn=E2=80=99t include such niceties. When that machine-readable version includes a newline character in a data field (as your example table does), org doesn=E2=80=99t know what to do and messes up. --=20 Aaron Ecay