NAME
R::Writer - Generate R Scripts From Perl
SYNOPSIS
use R::Writer;
{
# x <- 1;
# y <- x + 1;
# cat(y);
my $R = R();
$R->var(x => 1)
->var(y => 'x + 1')
->call(cat => \'y')
;
print $R->as_string;
# or save to a file
$R->save('file');
}
DISCLAIMER
** THIS SOFTWARE IS IN ALPHA ** Patches, comments, and contributions are very much welcome. I'm not really a statistics guy. I just happen to write Perl code to do it.
I'm sure there are bunch of bugs lurking, but I'd like this module to be useful, so please let me know if there are problems or missing features.
DESCRIPTION
R::Writer is a tool to generate R scripts for the "R" Statistical Computing Tool from within Perl.
Implementation details heavily borrow from JavaScript::Writer. Without it, this module wouldn't have been possible (I'm not insan... smart enough to fiddle with DB package on my own. gugod++)
TODO
- Remove JavaScript-ness
-
JSON and what not are probably not needed.
- Add Proper Documentation
- Document Way To Feed The Script To "R"
AUTHOR
Copyright (c) 2008 Daisuke Maki <daisuke@endeworks.jp>
Much of the code is gratuitously taken from JavaScript::Writer, which is by Kang-min Liu <gugod@gugod.org>
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html