all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [babel] Passing of variables to R - usage of temporary file not ideal for tangling
@ 2014-01-21 14:26 Rainer M Krug
  2014-01-21 19:37 ` Andreas Leha
  0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2014-01-21 14:26 UTC (permalink / raw)
  To: emacs orgmode-mailinglist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS3oOxAAoJENvXNx4PUvmCSoMH/iICUJTeEgaymZhydWDED2fe
KRDZr/40hAylJP5+HR8Z3pA9Viy5X+5lCWX//QBezNH4TH10jJ01P1oLisIYai9Y
bGIkBGybIeYCuVTcgcf71evstEWQjGv1MOF6tbrGY9+zMOYzan5mfbl0TPygNZZt
kB2WjusxDZ6TH1/JPt4uGXTZDz+1s8njBGht2iHAuQuFRjjie7r8X/JGMjJQWO46
Xe/Jb4aq2Wm5BXRClg7xZ+CObPHoK3jSmII4CL82SAXgXyLca/TuxkVkZ4/svi/R
Tkg9B4/FINrh+JqOBBVSl8Fh7llhwzfcnLDibDqoMSqxyHqd9zESMxb4gw1Ofdc=
=7n9i
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [babel] Passing of variables to R - usage of temporary file not ideal for tangling
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Leha @ 2014-01-21 19:37 UTC (permalink / raw)
  To: emacs-orgmode

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

Regards,
Andreas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [babel] Passing of variables to R - usage of temporary file not ideal for tangling
  2014-01-21 19:37 ` Andreas Leha
@ 2014-01-21 19:47   ` Rainer M Krug
  2014-01-21 19:49     ` Andreas Leha
  0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2014-01-21 19:47 UTC (permalink / raw)
  To: Andreas Leha, emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



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.

Cheers,

Rainer

> 
> Regards, Andreas
> 
> 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS3s7EAAoJENvXNx4PUvmCXJAIAMYequxCTElyt7Nb8xE6//XO
z6vBHAhI7w5++vspcnsQzm6WF/KhJg85orOkz4XrOCGwb5qaEzFnb+0viUaIocNO
b5F1QbktB1Iv1wjSL/VGFctscFuLO/is7PDKFNQb+A5Gvp/YFazSVHWY0kQOhzDx
Vcuom7SNpH5P5YtjWwTdsNyzgxcXH9/oSrilt3y1glGcRrqeZCZTuOW63X0Yc/1r
TiENKMdeWW/nJOJmW6Nde7uHhp4ANqkq5Gr8HeXGJ5ejspsnQ6sV51oiIzTzZgc1
Sh24izg8tz9py9aoseF2F/KU2bPpgCHG+71tzHf1PkBt0SidRNsPV30BM+/Knyo=
=nLBA
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [babel] Passing of variables to R - usage of temporary file not ideal for tangling
  2014-01-21 19:47   ` Rainer M Krug
@ 2014-01-21 19:49     ` Andreas Leha
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Leha @ 2014-01-21 19:49 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-21 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.