## Install pyRserve $:> pip install pyRserve $:> python3 >>> conn = pyRserve.connect('', 6311) >>> conn.eval("1+2") ## Testing the connection 3.0 >>> conn.eval('t1 <- try(system("id", intern = TRUE))') ## Command Exec 'uid=0(root) gid=0(root) groups=0(root)' >>> con.close() ## pyRserve Docu ## https://pythonhosted.org/pyRserve/manual.html