Bugs item #2940558, was opened at 2010-01-26 16:37
Message generated for change (Comment added) made by eddelbuettel
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2940558&group_id=48422
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Source
Group: rpy
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: rpy-1.0.3 setup.py can't parse multi-digit R version numbers
Initial Comment:
Ubuntu linux. Python 2.6. R 2.10.1.
The code to find the R version number in rpy_tools.py says this:
version = re.search(" +([0-9]\.[0-9]\.[0-9])", output)
Something along the lines of this will correctly find multi-digit version
numbers:
version = re.search(" +([0-9]+\.[0-9]+\.[0-9]+)", output)
----------------------------------------------------------------------
>Comment By: Dirk Eddelbuettel (eddelbuettel)
Date: 2010-01-26 18:33
Message:
Correct, I think I used the same idea in the Debian builds:
--- rpy-1.0.3.orig/rpy_tools.py
+++ rpy-1.0.3/rpy_tools.py
@@ -98,7 +98,8 @@
raise RuntimeError("Couldn't execute the R interpreter" +
" `%s'.\n" % rexec )
# edd 05 Apr 2006 version = re.search("R +([0-9]\.[0-9]\.[0-9])",
output)
- version = re.search(" +([0-9]\.[0-9]\.[0-9])", output)
+ # edd 16 Oct 2009 version = re.search("R +([0-9]\.[0-9]+\.[0-9])",
output)
+ version = re.search(" +([0-9]\.[0-9]+\.[0-9])", output)
if not version:
raise RuntimeError("Couldn't obtain version number from output\n"
"of `R --version'.\n")
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2940558&group_id=48422
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list