Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^7: Calling R in perl

by Anonymous Monk
on Dec 17, 2012 at 02:42 UTC ( [id://1009105]=note: print w/replies, xml ) Need Help??


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

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?

Replies are listed 'Best First'.
Re^8: Calling R in perl
by blackzero (Acolyte) on Dec 17, 2012 at 04:01 UTC

    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;

      Since you are having so much trouble with this installation, maybe you should just use Perlbrew to install a fresh, independent, and current Perl installation. Then use the guide on the Perlbrew site to install cpanm and then you are running on EZ-mode.

      Also, which versions of R and Perl are you running?

        perl is 4:5.14.3-218.fc17

        R is 2.15.2-1.fc17

        that is highly unlikely to help in this situation
      So all other tests pass? In that case, ignore it and install the module -- you might also report upstream to rt://Statistics-R

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found