I'm trying to use pyCall. The function I'm calling is returning a variable with type
but it fails. It seems to me that the type is not recognized in the function "py_to_r" in "CastPyObjects.c". Therefore the function "py_class" is called, and it fails with the error:
Couldn't find the object '__R__'
It is a very cryptic error message, and it took me a while to figure out it was because of the return type.
I did a simpe float() in python before I returned the value, and it solved the problem. Tell me if you need further information.