Yeah, sorry, this is the output:
In [3]: import numpy
In [4]: import rpy2
In [5]: import rpy2.robjects as robjects
In [7]: marr = robjects.r.array(robjects.IntVector(range(54)),dim=
robjects.IntVector([9,2,3]))
In [8]: marrpy = numpy.array(marr)
In [9]: print marrpy.flatten()
--> print(marrpy.
This is a bug then.
The problem is in the way strides are computed (buffer.c in
rpy/rinterface), and a fix seems to be:
static void
sexp_strides(SEXP sexp, Py_intptr_t *strides, Py_ssize_t itemsize,
Py_intptr_t *shape, int nd)
{
/* Set the buffer 'strides', that is a vector or Py_in