Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Calling R in perl

by frozenwithjoy (Curate)
on Dec 16, 2012 at 19:52 UTC ( #1009088=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Calling R in perl
in thread Calling R in perl

Ya, I think you must have an old version. You should update it via cpan (or cpanm, etc.).


Comment on Re^5: Calling R in perl
Replies are listed 'Best First'.
Re^6: Calling R in perl
by blackzero (Acolyte) on Dec 16, 2012 at 20:56 UTC

    Can you help me here?

    I never really used CPAN, so it may be a silly question. Sorry. But when I try to use it with the command "install Statistics::R" it return the following error:

    Failed during this command:  FANGLY/Statistics-R-0.30.tar.gz  : make_test NO

    Any advices about that?

    NOTE: I'm running a Fedora 17 and perl 4:5.14.3-218.fc17, and I ran cpan with "sudo perl -MCPAN -e shell"

    EDIT:

    I tried to install it by hand using the commands "make Makefile.PL", "make", "make test", "make install".

    But when I rum "make test". It fails and returns this error message:

    Test Summary Report ------------------- t/08-errors.t (Wstat: 256 Tests: 10 Failed: 1) Failed test: 10 Non-zero exit status: 1 Files=9, Tests=10195, 64 wallclock secs ( 8.93 usr 0.48 sys + 54.43 c +usr 4.36 csys = 68.20 CPU) Result: FAIL Failed 1/9 test programs. 1/10195 subtests failed. make: ** [test_dynamic] Erro 1

      Any advices about that?

      Get more information, run Makefile.PL yourself

      step out of cpan, cpan>look Module and run perl Makefile.PL yourself, and confirm perl -V

      Or the same with cpanp -z Module then perl Makefile.PL ...

      Do you have the prerequisite r-studio?

        cpan>look Statistics::R

        Returned this:

        # Testing Statistics::R 0.30, Perl 5.014003, /usr/bin/perl # Failed test 'Internal error' # at t/08-errors.t line 40. (in cleanup) Error stopping R: 256 # Looks like you failed 1 test of 10. Failed 1/9 test programs. 1/10195 subtests failed. make: ** [test_dynamic] Erro 1

        This is the code in 08-errors.t

        #! perl use strict; use warnings; use Test::More; use Statistics::R; SKIP: { skip 'because tests hang on Win32 (bug #81159)', 1 if $^O =~ /^(MS) +?Win32$/; ok my $R = Statistics::R->new(); is $R->run(q`a <- 1;`), ''; eval { $R->run( qq`print("Hello");\nprint(ASDF)` ); }; #diag "Diagnostic: \n".$@."\n"; ok $@, 'Runtime error'; is $R->run(q`a <- 1;`), ''; ok $R = Statistics::R->new(); eval { $R->run( qq`print("Hello");\nprint "ASDF"` ); }; #diag "Diagnostic: \n".$@."\n"; ok $@, 'Syntax error'; # Actual error message varies depending on locale is $R->run(q`a <- 1;`), ''; use_ok 't::FlawedStatisticsR'; ok $R = t::FlawedStatisticsR->new(); eval { $R->run( qq`print("Hello");\ncolors<-c("red")` ); }; #diag "Diagnostic: \n".$@."\n"; ok $@, 'Internal error'; # THIS IS LINE 40 !!! }; done_testing;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009088]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-07-29 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls