paleolimbot commented on a change in pull request #11919:
URL: https://github.com/apache/arrow/pull/11919#discussion_r766791379
##########
File path: r/src/py-to-r.cpp
##########
@@ -21,6 +21,38 @@
#include <arrow/c/bridge.h>
+// [[arrow::export]]
+double external_pointer_addr_double(SEXP external_pointer) {
+ // potentially lossy conversion to double needed for the current
+ // implementation of import/export to Python
+ return reinterpret_cast<uintptr_t>(R_ExternalPtrAddr(external_pointer));
Review comment:
For sure! The motivation of this PR is to provide all the machinery on
the R side that we need to avoid doing it (with a PR on the Python side to
follow).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]