From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: [babel] return file from R Date: Thu, 17 Dec 2015 14:41:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Zns-0005Kq-S5 for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 09:45:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Zno-0000iE-PK for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 09:45:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:58774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Zno-0000i2-ID for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 09:45:08 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a9Znj-0001mU-1W for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 15:45:03 +0100 Received: from 193.63.221.204 ([193.63.221.204]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2015 15:45:03 +0100 Received: from andreas.leha by 193.63.221.204 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2015 15:45:03 +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, I think there is a bug in the handling of results of R src blocks. What is the suggested way to make an R block return a link to a file? The obvious way appends a newline character to the file link (which is broken because of that). Here is an example: --8<---------------cut here---------------start------------->8--- #+NAME: TESTSRC #+BEGIN_SRC R :results file a <- file.path("junk", "test.org") a #+END_SRC #+RESULTS: TESTSRC [[file:junk/test.org ]] --8<---------------cut here---------------end--------------->8--- Regards, Andreas