i need to connect pyRserve in iPython, but there is an error when i try to connect it. This is the error.
conn = pyRserve.connect()
And this is what i get:
RConnectionRefused: Connection denied, server not reachable or not accepting connections.
In the pyrserve manual are and advice to correct this, but i don't understand what i need to do. This is the advice (Note)
Note When a remote connection to Rserve should be opened, and pyRserve cannot connect to it, most likely Rserve only listens to it’s own internal network connection. To force Rserve accepting connections from other machines create a file called /etc/Rserv.conf and add at least the following line: remote enable Then restart Rserve.
So, i need to know how to implement the note and connect the Rserve in python
Thanks everyone
I had exactly the same issue with you before and was able to solve it by installing Rserve, make sure you download the file from their website and run the codes below:
And then when running this in the terminal:
There should be messages indicating that r is in daemon mode, and then running conn = pyRserve.connect() should be no problem from there.