I'm looking for an advice on how to integrate between perl and R (mostly in the direction of querying R or running R-like functions from within Perl).
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!