daverave has asked for the wisdom of the Perl Monks concerning the following question:
Too often I find myself writing in Perl wishing I could now switch to R. What I usually end up doing is to write an R script that does what I like, then tell my Perl script to write down the data to a file and call the R script with this input file (simple system). The R scripts parses its input file, does some R magic and writes down the results into a file. The perl script then reads this new file, parses it and continues... not fun at all: a lot of parsing overhead, always need to keep the two in sync when changing anything, etc..
I've done some searching here and ran into some old posts mentioning RSPerl http://www.omegahat.org/RSPerl/index.html but it seems to have been last updated more than 3 years ago. I wonder if this is indeed the right choice, whether there any alternatives, and more generally - what do you commonly do when you need R?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl-R integration
by lima1 (Curate) on Sep 25, 2010 at 19:21 UTC | |
|
Re: Perl-R integration
by Khen1950fx (Canon) on Sep 25, 2010 at 16:17 UTC | |
by daverave (Scribe) on Sep 25, 2010 at 19:29 UTC | |
by Khen1950fx (Canon) on Sep 26, 2010 at 04:19 UTC | |
by daverave (Scribe) on Sep 26, 2010 at 09:04 UTC | |
by Khen1950fx (Canon) on Sep 26, 2010 at 11:21 UTC |