Hello Rpy-list,
I am using the latest version of the ActiveState Python Community
version and have run the latest RPY2 msi installer from sourceforge. I
have installed both 32 and 64 bits R 2.13.1 (it doesn't help if the
installation is just 32 bits), but am bugging out at
rinterface\__init__.py lines 37-54
# Win32-specific code copied from RPy-1.x
if sys.platform == 'win32':
import win32api
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'bin')
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'modules')
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'lib')
# Load the R dll using the explicit path
# First try the bin dir:
Rlib = os.path.join(R_HOME, 'bin', 'R.dll')
# Then the lib dir:
if not os.path.exists(Rlib):
Rlib = os.path.join(R_HOME, 'lib', 'R.dll')
# Otherwise fail out!
if not os.path.exists(Rlib):
raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
win32api.LoadLibrary( Rlib )
as the code assumes that the R.dll is in R_HOME\bin or lib. in fact it
is in "c:\Program Files\R\R-2.13.1\bin\i386\".
Even if i copy the R.dll and other files from i386 to this directory,
it doesn't work as it fails to load the library.
What could be the problem?
Please answer both to the group and to [email protected].
thanks.
--
Best regards,
Jiri mailto:[email protected]
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list