On Wed, Oct 27, 2010 at 3:14 PM, Deschamps, Benjamin
<benjamin.descha...@agr.gc.ca> wrote:
> I know that other people have had similar issues, but I have not found a
> solution that worked for me…
>
> I am receiving the following error when trying to load rpy2 (2.0.8, Windows
> XP) in Python 2.6.6 with “import rpy2.robjects as robjects”:
>
> ...
> RuntimeError: Unable to locate R.dll within C:\Program Files\R\R-2.12.0
>
> R.dll is located at C:\Program Files\R\R-2.12.0\bin\i386\R.dll, and my PATH
> includes C:\Program Files\R\R-2.12.0, C:\Program Files\R\R-2.12.0\bin and
> C:\Program Files\R\R-2.12.0\bin\i386. I also have the variable R_HOME
> defined as C:\Program Files\R\R-2.12.0, and pywin32-214 is installed and
> working. Typing “R” at the command prompt works, “R --version” works and
> returns the correct version, and “R RHOME” returns C:\PROGA~1\R\R-2.12~1.0
> (not sure why). By the way, I rpy2 was installed using the current windows
> installer, rpy2-2.0.8.win32-py2.6.msi. Thanks,

Hi,

I don't remember seeing an i386 subdirectory under bin on older versions
of R on Windows (and I can't check right now). Try adding this to your path:

C:\Program Files\R\R-2.12.0\bin\i386

If that works, then rpy2 might be changed able to look there automatically
based on the RHOME location.

Peter

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to