[ 
https://issues.apache.org/jira/browse/ARROW-11120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258106#comment-17258106
 ] 

Joris Van den Bossche commented on ARROW-11120:
-----------------------------------------------

[~lgautier] Your summary workflow (and linked repo) doesn't seem to be using 
the C interface, but trying to directly pass a pointer to an actual Arrow C++ 
array?  

Just to be sure, did you see the {{_export_to_c}} (eg at 
https://github.com/apache/arrow/blob/master/python/pyarrow/array.pxi#L1236-L1289),
 which gives you the raw pointer from the C interface. The R arrow package 
should be able to create a R object from this AFAIK. 
There are also some tests using CFFI in python to interact with the C 
interface: 
https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_cffi.py

(note I don't know the internals of rpy2, so not sure of any of those pointers 
is relevant here)

> [Python][R] Prove out plumbing to pass data between Python and R using rpy2
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-11120
>                 URL: https://issues.apache.org/jira/browse/ARROW-11120
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python, R
>            Reporter: Wes McKinney
>            Priority: Major
>
> Per discussion on the mailing list, we should see what is required (if 
> anything) to be able to pass data structures using the C interface between 
> Python and R from the perspective of the Python user using rpy2. rpy2 is sort 
> of the Python version of reticulate. Unit tests will then validate that it's 
> working



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to