I am running into similar but slightly different problems. I am able to
change path, and have edited the r_interface\__init__.py file to output
what Rlib and os.path are. It guesses the correct location of R.dll, but
still throws an error. I have been doing some reading, and it appears as
though the os.path.exists will fail if you do not have administartor
priviliges when opening. I changed write privileges on all the files (as
well as moving the R installation out of C:\Program Files and into C:\). I
now have os.path.exists(Rlib) output True, but it fails at the
win32.LoadLibrary(Rlib).
My screen dump is below.
Does anybody have any suggestions?
I'm on 64 bit windows 7, but platform.architecture says "32 bit." Could
this be the problem (as the 32 vs 64 bit always seems to be...).
Thanks for any help - I've been slaving away on this for a long time now...
Rpy2 v 2.3.6
Python 2.7.3
R 2.15.3
Thanks!,
Dave
>>> import rpy2.tests
32bit
C:\Program Files\R\R-2.15.3
#Result of print(R_HOME)
C:\Program Files\R\R-2.15.3\bin\i386\R.dll
#Result of print (Rlib)
True
#This is the result if print(os.path.exists(Rlib))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\rpy2\tests.py", line 9, in <module>
import rpy2.robjects.tests
File "C:\Python27\lib\site-packages\rpy2\robjects\__init__.py", line 15,
in <module>
import rpy2.rinterface as rinterface
File "C:\Python27\lib\site-packages\rpy2\rinterface\__init__.py", line
90, in <module>
win32api.LoadLibrary( Rlib )
pywintypes.error: (161, 'LoadLibrary', 'The specified path is invalid.')
>>>
On Mon, Jun 3, 2013 at 4:28 PM, Paul Hobson <pmhob...@gmail.com> wrote:
>
>
>
> On Fri, May 31, 2013 at 7:52 AM, Johannah Ryan <
> johannah.r.ryan...@dartmouth.edu> wrote:
>
>> I'm having a similar problem. It gives me this error
>>
>> copying .\rpy\interactive\__init__.py ->
>> build\lib.win32-2.7\rpy2\interactive
>> creating build\lib.win32-2.7\rpy2\interactive\tests
>> copying .\rpy\interactive\tests\__init__.py ->
>> build\lib.win32-2.7\rpy2\interact
>> ive\tests
>> running build_ext
>> Error: Tried to guess R's HOME but no R command in the PATH.
>>
>> What should the r home and r user variables be set to?
>> ~H
>>
>
> R_HOME is that path to the R installation directory (e.g., C:\Program
> Files\R\R-2.12.1)
> R_USER is your user name/login on the machine.
> -paul
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list