emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] Passing of variables to R - usage of temporary file not ideal for tangling
Date: Tue, 21 Jan 2014 20:49:07 +0100	[thread overview]
Message-ID: <87fvoh15fw.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 52DECEC4.9040007@krugs.de

Rainer M Krug <Rainer@krugs.de> writes:

> On 01/21/14, 20:37 , Andreas Leha wrote:
>> Hi Rainer,
>> 
>> Rainer M Krug <Rainer@krugs.de> 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
>
> Must have missed that one - I might take a look at this issue, but it
> s not a major issue for me at the moment.
>

As it was for me during the last two years ;-)

Cheers,
Andreas

      reply	other threads:[~2014-01-21 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21 14:26 [babel] Passing of variables to R - usage of temporary file not ideal for tangling Rainer M Krug
2014-01-21 19:37 ` Andreas Leha
2014-01-21 19:47   ` Rainer M Krug
2014-01-21 19:49     ` Andreas Leha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvoh15fw.fsf@med.uni-goettingen.de \
    --to=andreas.leha@med.uni-goettingen.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).