Revision: 392
          http://rpy.svn.sourceforge.net/rpy/?rev=392&view=rev
Author:   warnes
Date:     2008-01-02 09:33:42 -0800 (Wed, 02 Jan 2008)

Log Message:
-----------
Use 'tail -n 1' instead of 'tail -1' when calling 'R RHOME' to make recent 
versions of tail happy

Modified Paths:
--------------
    trunk/rpy/rpy_tools.py

Modified: trunk/rpy/rpy_tools.py
===================================================================
--- trunk/rpy/rpy_tools.py      2008-01-02 17:29:55 UTC (rev 391)
+++ trunk/rpy/rpy_tools.py      2008-01-02 17:33:42 UTC (rev 392)
@@ -53,7 +53,7 @@
     if sys.platform == 'win32':
       stat, rhome = getstatusoutput('R RHOME')
     else:
-      stat, rhome = getstatusoutput('R RHOME | tail -1')
+      stat, rhome = getstatusoutput('R RHOME | tail -n 1')
     if stat or len(rhome)<=0:
       raise RuntimeExecError("Couldn't execute the R interpreter.\n"
                              "Check whether R is in the execution path.")


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to