1 package Statistics::R::Legacy;
7 use base qw( Statistics::R );
9 use vars qw{@ISA @EXPORT};
35 Statistics::R::Legacy - Legacy methods for Statistics::R
39 This module contains legacy methods for I<Statistics::R>. They are provided
40 solely so that code that uses older versions of I<Statistics::R> does not crash
41 with recent version. Do not use these methods in new code!
43 Some of these legacy methods simply had their name changed, but some others were
44 changed to do nothing and return only single value because it did not make sense
45 to keep these methods as originally intended anymore.
53 This is the same thing as start().
57 This is the same thing as stop().
61 This is the same thing as restart().
65 This is the same thing as bin().
67 =item start_sharedR() / start_shared()
69 Use the shared option of new() instead.
71 =item send / read() / receive()
83 =item is_blocked() / is_locked()
89 Return the empty string.
101 =item * L<Statistics::R>
107 Florent Angly E<lt>florent.angly@gmail.comE<gt> (2011 rewrite)
109 Graciliano M. P. E<lt>gm@virtuasites.com.brE<gt> (original code)
113 Brian Cassidy E<lt>bricas@cpan.orgE<gt>
115 =head1 COPYRIGHT & LICENSE
117 This program is free software; you can redistribute it and/or
118 modify it under the same terms as Perl itself.
122 All complex software has bugs lurking in it, and this program is no exception.
123 If you find a bug, please report it on the CPAN Tracker of Statistics::R:
124 L<http://rt.cpan.org/Dist/Display.html?Name=Statistics-R>
126 Bug reports, suggestions and patches are welcome. The Statistics::R code is
127 developed on Github (L<http://github.com/bricas/statistics-r>) and is under Git
128 revision control. To get the latest revision, run:
130 git clone git@github.com:bricas/statistics-r.git
136 # Prevent "Name XXX used only once" warnings in this block
138 *startR = \&Statistics::R::start;
139 *stopR = \&Statistics::R::stop;
140 *restartR = \&Statistics::R::restart;
141 *Rbin = \&Statistics::R::bin;
142 *receive = \&Statistics::R::result;
143 *start_sharedR = \&start_shared;
145 *is_blocked = \&is_locked;
151 $self->start( shared => 1 );
171 # Send a command to R. Do not return the output.
172 my ($self, $cmd) = @_;