On 2012-07-19 20:16, Paul Hobson wrote: > On Wed, Jul 18, 2012 at 9:46 AM, Brad Reisfeld <brad.reisf...@gmail.com> > wrote: >> Hi, >> >> I have created a binary installer for rpy2 for win32 platforms and >> have lightly tested it on Windows 7. >> >> It may be downloaded from the following url: >> >> https://bitbucket.org/breisfeld/rpy2_w32_fix/issue/1/binary-installer-for-win32 >> >> The current code, forked from lgautier's Bitbucket repository and >> tweaked slightly, suffers from a problem that named temporary files >> created by rpy2 under certain circumstances are not automatically >> deleted (at least on Windows 7). Thus, these files must currently be >> deleted by hand. >> >> Kind regards, >> Brad > Awesome! This very exciting. It didn't working out of the box for me, > but the three errors I received add easy fixes: > > 1) Add the path to R.dll to my PATH variable (I went to the 32-bit directory) > 2) Add an environment variable R_HOME (C:\Program Files\R\R-2.12.1 for me) > 3) Add an environment variable R_USER (simply my username in Windows).
May be one more patch to rpy/__init__.py would help make a default work if those are not set. > > Last snag is that running the tests with: > DOS>C:\Python27\python.exe -m "rpy2.tests" > yields the following: > E....Traceback (most recent call last): > File "<string>", line 1, in <module> > File "C:\Python27\lib\multiprocessing\forking.py", line 374, in main > self = load(from_parent) > File "C:\Python27\lib\pickle.py", line 1378, in load > return Unpickler(file).load() > File "C:\Python27\lib\pickle.py", line 858, in load > dispatch[key](self) > File "C:\Python27\lib\pickle.py", line 880, in load_eof > raise EOFError > EOFError > E........Error in function (new = FALSE) : file choice cancelled > E > [opens up an explorer window looking for a file, which I cancelled] The C-API to R allows callbacks for few things (such as file selection). Their purpose is to allow a seamless integration of R with front-ends or IDEs (by replacing them by custom functions). The Windows port of the rpy2 never had it working, so this is (unfortunately) expected. All of the tests checking the callbacks are expected to fail. Fixing it is a little more involved, but where there is a will there is a way; this is possibly a (contributed) patch away. IIRC Evgeny authored the latest patches for the C code addressing Windows compatibility. L. PS: For Linux heads I am seeing that the Wine PPA for Ubuntu has just fixed the packages. I could install R, Python27, and rpy2 in it. > > However, some cursory tinkering with commands here: > http://rpy.sourceforge.net/rpy2/doc-2.1/html/introduction.html > indicates that everything is working as well as i need it too. The pull request I have is against the development version of rpy2. You'll want to look at that version of the documentation: http://rpy.sourceforge.net/rpy2/doc-dev/html/introduction.html > > Thanks very much for all work put into this! > > > -paul > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list