pyRerve is a library for connecting Python to an R process (an excellent statistic package) running under Rserve. Through such a connection variables can be get and set in R from Python, and also R-functions can be called remotely. In contrast to rpy or rpy2 the R process does not have to run on the same machine, it can run on a remote machine and all variable access and function calls will be delegated there.
Furthermore - and this makes everything feel very pythonic - all data structures will automatically be converted from native R to native Python types and back.
The pyRserve module has been mainly developed under Linux, and hence should run on all standard unix platforms. It has also been successfully used on Win32 machines. Unittests have only been used on the Linux side however they might just work fine for Win32.
What's New in This Release: [ read full changelog ]
· Fixed problem when receiving very large result sets from R (added support for XT_LARGE header flag)
· Correctly translate multi-dimensional R arrays into numpy arrays (preserve axes the right way) Removed 'arrayOrder' keyword argument as a consequence. API CHANGE - PLEASE ADAPT YOUR CODE!
· Support for conn.voidEval and conn.eval and new 'defaultVoid'-kw argument in the connect() function
· Fixed bug in receiving multi-dimensional boolean (logical) arrays from R
· Added support for multi-dimensional string arrays
· added support for XT_VECTOR_EXPR type generated e.g. via "expression()" in R (will return a list with the expression content as list content)
· windows users can now connect to localhost by pyRserve.connect() (omitting 'localhost' parameter)