That's not (yet) stated in the doc, but the code
for rpy2.riniterface.__init__ tells it:

1- look for R_HOME
2- if not R_HOME, try to get R_HOME from an executable R in 
the $PATH/%Path%
3- if still nothing and win32, try to get R from the registry


L.


On Wed, 2008-11-12 at 16:02 -0500, laurent oget wrote:
> Does this mean that we will have to change a registry key to switch
> from one version of R to the other, or will the version of R that is
> on the PATH take precendence?
> 
> Laurent
> 
> 2008/11/12 Peter <[EMAIL PROTECTED]>:
> > Hi Laurent,
> >
> > There have been a couple of threads recently about rpy2 having trouble
> > locating R on Windows.  I have a suggestion to improve the
> > situation...
> >
> > By default the R installer will record the R paths in the registry,
> > but R is not added to the PATH, nor is the R_HOME environment variable
> > setup.  Therefore for the average Windows installation, using the
> > registry is the best way to determine where R is (as this requires no
> > manual setup!).
> >
> > Looking at SVN, it seems rpy2 isn't taking advantage of the win32api
> > module (if installed) to ask the Windows registry where R is
> > installed.  See rpy/rpy_tools.py for how to do this.  I contributed
> > this code 3 years ago which is why I thought to check for rpy2 as well
> > (see rpy.py revision 186).
> >
> > Peter
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK & win great 
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > rpy-list mailing list
> > rpy-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/rpy-list
> >
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to