From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [babel] Passing of variables to R - usage of temporary file not ideal for tangling Date: Tue, 21 Jan 2014 20:37:23 +0100 Message-ID: <87k3dt15zg.fsf@med.uni-goettingen.de> References: <52DE83B1.809@krugs.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5h8o-00077C-9t for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 14:37:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5h8h-0004XC-VQ for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 14:37:42 -0500 Received: from plane.gmane.org ([80.91.229.3]:58082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5h8h-0004X3-Oo for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 14:37:35 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5h8e-0003Kk-ID for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 20:37:32 +0100 Received: from vpn-2113.gwdg.de ([134.76.2.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Jan 2014 20:37:32 +0100 Received: from andreas.leha by vpn-2113.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Jan 2014 20:37:32 +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 Rainer, Rainer M Krug writes: > I just realized that babel is using temporary files when passing > tables to R (no idea about other languages). This is OK when > evaluating code blocks or exporting, but causes problems when > tangling, as the temporary files are not available in a new session > and handing on the tangled code or sourcing it from R becomes impossible. > > I would therefore suggest to change the mechanism of passing tables to > R so that the tables are included in the tangled files. > > One option would be to use a direct 'text-connection' as describer in > the R help of read.table(), last example. > > Cheers, > > Rainer there has been a thread about this about two years ago: http://article.gmane.org/gmane.emacs.orgmode/51153 Regards, Andreas