Questions tagged [pyrserve]

A Python client to remotely access the R statistic package via network

pyRerve is a library for connecting Python to an R process (an excellent statistic package) running Rserve as a RPC connection gateway. 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 through the network.

Furthermore - and this makes everything feel very pythonic - all data structures will automatically be converted from native R to native Python and numpy types and back.

20 questions
0
votes
1 answer

How to call an R function with a dot in its name by pyRserve?

pyRserve module is really handy when interacting with Rserve session from python. You get access to an R object by prefix its name with expression like "conn.r" or "conn.ref" import pyRserve import numpy conn = pyRserve.connect() conn.r.List =…
Madcat
  • 379
  • 2
  • 7
0
votes
1 answer

pyRserve sapply in R environment not working as expected

I installed RServe in R and pyRserve in Python. Both are working great. I followed the documentation https://pythonhosted.org/pyRserve/manual.html, and things are working well. However, when I tried to run the example related to sapply, I get the…
Chris
  • 589
  • 4
  • 11
0
votes
1 answer

End of data error using PyRserve

I am calling an R script file from python using pyrserve. I have rserve running. At arbitrary points in the R script, pyrserve gives an error and quits: Traceback (most recent call last): File "scriptV2.py", line 272, in
user1971988
  • 845
  • 7
  • 22
0
votes
1 answer

ImportError when trying to import package pyRserve

I did an easy_install onto Windows 7 of the pyRserve package but when I run import pyRserve I get the following Import Error. I'm using Python 2.7.5. Any suggestions? Traceback (most recent call last): File "", line 2, in File…
Dirk Calloway
  • 2,569
  • 4
  • 23
  • 34
0
votes
1 answer

pandas dataframe to R using pyRserve

A large data frame (a couple of million rows, a few thousand columns) is created Pandas in python. This data frame is to be passed to R using PyRserve. This has to be quick - few seconds at most. There is a to_json function in pandas. Is to and from…
user1971988
  • 845
  • 7
  • 22
1
2