Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Steve Weston
On Sat, Jun 27, 2009 at 4:04 PM, Gabor Grothendieck wrote: > I think that most python installations won't have a > registry key set.  I have python 2.6 and 2.5 on my > machine but searching the registry found no > occurrence of the string python.   At least the path method The Python 2.5 installer

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Gabor Grothendieck
I think that most python installations won't have a registry key set. I have python 2.6 and 2.5 on my machine but searching the registry found no occurrence of the string python. At least the path method has the advantage that if its not set then the user only has to modify the path whereas if i

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Steve Weston
You can also try to find Python on Windows machines by reading the registry using the R readRegistry function (added sometime around R 2.7.0, I think). You can't count on the information being there, but it often is, depending on how Python was installed. Using the registry seems to work better t

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Romain Francois
I actually have the same question, about ant. I assume this would be what the SystemRequirements field in a package DESCRIPTION is for, but at the moment it seems unused. Is there a plan about this ? Romain On 06/27/2009 05:44 PM, Carlos J. Gil Bellosta wrote: Hello, I have been unsuccessful

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Gabor Grothendieck
If you can assume its on your path then try this: pth <- sapply(strsplit(Sys.getenv("PATH"), ";"), function(x) file.path(x, "python.exe", fsep = "\\")) pth[file.exists(pth)][1] On Sat, Jun 27, 2009 at 11:44 AM, Carlos J. Gil Bellosta wrote: > Hello, > > I have been unsuccessfully struggling for a