From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel: communicating irregular data to R source-code block Date: Mon, 23 Apr 2012 18:55:56 -0400 Message-ID: <87aa22t5vn.fsf@gmx.com> References: <1335039472.9075.YahooMailNeo@web161901.mail.bf1.yahoo.com> <87ipgrn4by.fsf@gmx.com> <1335219898.41851.YahooMailNeo@web161901.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMU3C-0000v4-ER for emacs-orgmode@gnu.org; Mon, 23 Apr 2012 20:56:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMU3A-0003Ft-Hw for emacs-orgmode@gnu.org; Mon, 23 Apr 2012 20:56:14 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:51787) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SMU3A-0003Fj-BR for emacs-orgmode@gnu.org; Mon, 23 Apr 2012 20:56:12 -0400 In-Reply-To: (Thomas S. Dye's message of "Mon, 23 Apr 2012 14:23:25 -1000") 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: "Thomas S. Dye" Cc: Michael Hannon , Org-Mode List , Eric Schulte --=-=-= Content-Type: text/plain > If I add fill=TRUE to that (on a git branch), then I get this: > > #+RESULTS: pascals-triangle > | 1 | | | | | | > | 1 | 1 | | | | | > | 1 | 2 | 1 | | | | > | 1 | 3 | 3 | 1 | | | > | 1 | 4 | 6 | 4 | 1 | | > | 1 | 5 | 10 | 10 | 5 | 1 | > > #+NAME: sanity-check > #+HEADER: :var sc_input=pascals-triangle > #+BEGIN_SRC R > sc_input > #+END_SRC > #+RESULTS: sanity-check > > | 1 | nil | nil | nil | nil | > | 1 | 1 | nil | nil | nil | > | 1 | 2 | 1 | nil | nil | > | 1 | 3 | 3 | 1 | nil | > | 1 | 4 | 6 | 4 | 1 | > | 1 | 5 | 10 | 10 | 5 | > | 1 | nil | nil | nil | nil | > > which isn't correct, but gets past the scan error. > Hmm, this happens with my patch applied as well. It seems to me this *must* be an R error. The raw textual data pre-import has no such wrap. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=R-import-19562ZU2 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 --=-=-= Content-Type: text/plain Why would R intentionally wrap a table at an arbitrary column? > > I'm in over my head here, but hope that my curiosity hasn't been too > noisy. > Me too. Unless someone who is familiar with the motivations and design decisions behind R's read.table function, I'm inclined to leave the current Org-mode code as is. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte/ --=-=-=--