Skip Menu |

This queue is for tickets about the Statistics-R CPAN distribution.

Report information
The Basics
Id: 23948
Status: resolved
Priority: 0/
Queue: Statistics-R

People
Owner: Nobody in particular
Requestors: kendrick.killian [...] colostate.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: bug in Statistics::R
Date: Thu, 14 Dec 2006 23:28:48 -0700
To: bug-Statistics-R [...] rt.cpan.org
From: Kendrick Killian <kendrick.killian [...] colostate.edu>
There is a bug in the Statistics-R-0.02. The bug will stop installation on a linux (unix) installation by preventing the linux routine from finding the R executable. If installation is forced, the bug shows up in every Statistics::R->new() when the binary location is not specified in the new command.. The following error message is generated: Can'find R binary! at blib/lib/Statistics/R.pm line 74. The bug was found on an OS X 10.4.8 (Darwin) installation although I tested it on GNU/Linux 2.6.15, and SunOS 5.8 with the shells csh, tcsh, ksh, and bash. Reproducibility The bug is not normally apparent since there are two sections of code that search for the executable. The second section uses the shell for the search after the buggy perl search fails. To get the error message put a write statement in the shell initialization. Then the bug can be seen by executing the following perl script: perl -e'use Statistics::R; $R = Statistics::R->new();' even on a successful installation. The error occurs on line 67 of Linux.pm my @path = (split(";" , $ENV{PATH} || $ENV{Path} || $ENV {path} ) , '/usr/lib/R/bin' , '/usr/lib/R/bin' ) ; The sells and unix's I tested use a colon, ':', not a semi-colon, ';' to delimit the $PATH environment variable and a space to delimit $path when it is defined. Also, there appears to be no reason to add '/usr/lib/R/bin' to the search array. The corrected line should read: my @path = (split(":" , $ENV{PATH} || $ENV{Path} || $ENV {path} ) , '/usr/lib/R/bin' ) ; After that correction, the pearl search normally finds the R executable and the shell command `which R1 is not executed. I am attaching the unpacked 'lib/Statistics/R/Bridge/Linux.pm' listed in the manifest. Kendrick

Message body is not shown because sender requested not to inline it.

=================================================================== Kendrick Killian (970) 491-5799 Colorado State University Natural Resource Ecology Laboratory Fort Collins, CO 80523-1499 Kendrick.Killian@colostate.edu
This was resolved in the unofficial 0.03 release, and now in the 0.04 release which should hit your cpan mirror sooon.