http://qs321.pair.com?node_id=1230264


in reply to Entire Results from R

Can you try to print the raw result? Maybe this will help to see what is wrong.

my $tmp_str = $R->run(qq`print($varname)`); print $tmp_str . "\n" ;

I got the previous line from the 'get' method of the module Statistics::R which I assume you are using. The 'get' method is doing a whole bunch of other stuff (which may cause the problem), so this line might show the entire result. Another small thing is that you are using @Rres = $R->get('xx'); and the method is returning a array reference. Although it is not entirely incorrect I do suggest using my $Rres = $R->get('xx'); print Dumper($Rres); instead

Further I don't know much about R

edit: Oh, and $varname should be 'datevec' or 'xx' or in this case of course.

Replies are listed 'Best First'.
Re^2: Entire Results from R
by msanchez78 (Initiate) on Feb 20, 2019 at 18:49 UTC
    hi ... thank you for your prompt reply. i tried
    my $tmp_str = $R->run(qq`print($varname)`); print $tmp_str . "\n" ;
    the result is the same --- the first line only:

    Time difference of hours

    yikes!

      I would go in and manually edit this line to 1

      use constant DEBUG => 0; # debugging messages

      And see what you get.