From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: [BUG] [babel] [R] :colnames yes conflicts with :results file Date: Tue, 06 Jan 2015 12:40:42 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8TYT-00077B-1p for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 07:48:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8TYN-0005Zm-Tc for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 07:48:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:57050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8TYN-0005Zg-MP for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 07:48:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y8TVd-0007FH-Ed for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 13:45:17 +0100 Received: from p5b0ee614.dip0.t-ipconnect.de ([91.14.230.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jan 2015 13:45:17 +0100 Received: from andreas.leha by p5b0ee614.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jan 2015 13:45:17 +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: emacs-orgmode@gnu.org Hi all, There seems to be a bug in babel (at least for R) when it comes to source blocks producing file links but taking tables with headers. In that case, ':colnames yes' disables the ':results file' directive. Here is the Cm: --8<---------------cut here---------------start------------->8--- * test #+BEGIN_SRC R :results file replace "some_file.csv" #+END_SRC #+RESULTS: [[file:some_file.csv]] #+BEGIN_SRC R :colnames yes :results file replace "some_file.csv" #+END_SRC #+RESULTS: | x | |---------------| | some_file.csv | * My Setup #+begin_src emacs-lisp (concat (replace-regexp-in-string " on .*" "" (emacs-version)) "\n" (replace-regexp-in-string " @.*" ")" (org-version nil t)) "\n" (replace-regexp-in-string "].*" "]" (ess-version))) #+end_src #+RESULTS: : GNU Emacs 24.4.50.1 (x86_64-apple-darwin13.3.0, NS appkit-1265.21 Version 10.9.4 (Build 13E28)) : of 2014-09-02 : Org-mode version 8.3beta (release_8.3beta-717-ga8096c) : ess-version: 14.05 [git: 4283f1304a54502c42707b6a4ba347703f0992dd] --8<---------------cut here---------------end--------------->8--- Regards, Andreas