I am looking at sharing a pointer between Python and R. For example create an Arrow object with Python, perform initial filtering, and then pass a shared pointer to R through rpy2 (meaning that an R6 object is created from this pointer and R package arrow).

I found in the source a file that suggest thats Python-to-R is either planned or may be even already functional: https://github.com/apache/arrow/blob/master/r/src/py-to-r.cpp
However, I did not find documentation about it.

Would anyone here know more about this?