Is there any advantage in terms of speed or some other aspect?
Show connections:
showConnections(all = TRUE)
Individual examples:
stdin()
stdout()
stderr()
Show connections:
showConnections(all = TRUE)
Individual examples:
stdin()
stdout()
stderr()
To answer your question, let's understand what your problem is and what are the workarounds. Your problem is transferring data between two processes, R and Python. Here are some solutions to this problem: