My team is working on a R project that imports a Python pacakge with reticulate
. One of the Python function generates some important output stored in a numpy.recarray
object. We have been trying to access the reacrray in R without any success, and the same error message always appears:
Error in py_ref_to_r(x) :
Conversion from numpy array type 20 is not supported
We would really appreciate any help on how to get around this. Specifically, how to convert recarray objects into normal numpy vectors in R, or even better, into R objects.
Thanks a lot!!
What we've tried: data_to_dict()
and to_dict()
and other Python functions we could find online, but just calling the recarray object gives us the above error message.