1 package Statistics::R::Legacy;
7 use base qw( Statistics::R );
9 use vars qw{@ISA @EXPORT};
34 Statistics::R::Legacy - Legacy methods for Statistics::R
38 B<Do not use this module directly. Use L<Statistics::R> instead.>
40 This module contains legacy methods for I<Statistics::R>. They are provided
41 solely so that code that uses older versions of I<Statistics::R> does not crash
42 with recent version. Do not use these methods in new code!
44 Some of these legacy methods simply had their name changed, but some others were
45 changed to do nothing and return only single value because it did not make sense
46 to keep these methods as originally intended anymore.
54 This is the same thing as start().
58 This is the same thing as stop().
62 This is the same thing as restart().
66 This is the same thing as bin().
68 =item start_sharedR() / start_shared()
70 Use the shared option of new() instead.
72 =item send / read() / receive()
84 =item is_blocked() / is_locked()
90 Return the empty string.
102 =item * L<Statistics::R>
108 Florent Angly E<lt>florent.angly@gmail.comE<gt> (2011 rewrite)
110 Graciliano M. P. E<lt>gm@virtuasites.com.brE<gt> (original code)
114 Florent Angly E<lt>florent.angly@gmail.comE<gt>
116 Brian Cassidy E<lt>bricas@cpan.orgE<gt>
118 =head1 COPYRIGHT & LICENSE
120 This program is free software; you can redistribute it and/or
121 modify it under the same terms as Perl itself.
125 All complex software has bugs lurking in it, and this program is no exception.
126 If you find a bug, please report it on the CPAN Tracker of Statistics::R:
127 L<http://rt.cpan.org/Dist/Display.html?Name=Statistics-R>
129 Bug reports, suggestions and patches are welcome. The Statistics::R code is
130 developed on Github (L<http://github.com/bricas/statistics-r>) and is under Git
131 revision control. To get the latest revision, run:
133 git clone git@github.com:bricas/statistics-r.git
139 # Prevent "Name XXX used only once" warnings in this block
141 *startR = \&Statistics::R::start;
142 *stopR = \&Statistics::R::stop;
143 *restartR = \&Statistics::R::restart;
144 *Rbin = \&Statistics::R::bin;
145 *receive = \&Statistics::R::result;
146 *start_sharedR = \&start_shared;
148 *is_blocked = \&is_locked;
154 $self->start( shared => 1 );
174 # Send a command to R. Do not return the output.
175 my ($self, $cmd) = @_;