During the installation of R, there is an option (on by default) to set the R registry entries. If, for some reason, this gets unchecked, it doesn't happen.
In any case, the problem can be solved by properly setting the RHOME environment variable. The RHOME environment variable should point to the root of the R installation path, as reported by executing the command /path/to/the/executable/R.exe RHOME -Greg On Jan 25, 2008, at 12:56AM , Alex Mandel wrote: > H Nesse wrote: >> Howdy, I ran into a rather odd problem installing rpy >> on one computer (I have used it to great success on >> another). Every time I try and import rpy (in IDLE or >> command line) I get the message "Unable to determine R >> version from the registry. Trying another method." >> This is then followed by a usual python error message: >> >> Traceback (most recent call last): >> File "<pyshell#0>", line 1, in <module> >> from rpy import * >> File "C:\Python25\Lib\site-packages\rpy.py", line >> 53, in <module> >> RHOME = rpy_tools.get_R_HOME() >> File "C:\Python25\lib\site-packages\rpy_tools.py", >> line 58, in get_R_HOME >> raise RuntimeExecError("Couldn't execute the R >> interpreter.\n" >> NameError: global name 'RuntimeExecError' is not >> defined >> >> I've tried reintalling python (2.5.1), and R (first >> used 2.2.1(?), changed to 2.6.1 on reinstall), with no >> luck. The computer is older DELL laptop running >> windows XP. Any ideas on what might be going amiss, >> and what to do to fix it? >> >> Many thanks, >> >> -Hans Nesse >> >> > > Try setting a system or user variable for R_HOME that points to your > installed version of R. I can't remember if it needs the path where > the > exe is or the path including the exe. > > Some computers just don't setup the paths or registry right on > install. > Alex > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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