From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [BUG] [babel] [R] :colnames yes conflicts with :results file Date: Wed, 07 Jan 2015 07:14:03 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8uBg-0000Tz-Ot for emacs-orgmode@gnu.org; Wed, 07 Jan 2015 12:14:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8uBb-0004WO-PA for emacs-orgmode@gnu.org; Wed, 07 Jan 2015 12:14:28 -0500 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:51034) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Y8uBb-0004Vr-Hh for emacs-orgmode@gnu.org; Wed, 07 Jan 2015 12:14:23 -0500 In-Reply-To: (Rainer M. Krug's message of "Wed, 07 Jan 2015 10:19:10 +0100") 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: Rainer M Krug Cc: Andreas Leha , emacs-orgmode@gnu.org Rainer M Krug writes: > Well - if the result is an R data.frame, it would not make a difference > if I use :results table or not - correct? This is how I understand it. Because an R data.frame looks like a table, the babel default is to represent it as a table in the results. However, Babel interprets the single-cell table as a scalar. #+begin_src R :results value ret <- data.frame("scalar") #+end_src #+results: : scalar #+begin_src R :results value table ret <- data.frame("table") #+end_src #+results: | table | hth, Tom -- Thomas S. Dye http://www.tsdye.com