NumPy format compatibility

NumPy format versions

.npy format versions 1.0, 2.0, and 3.0 (latest at the time of writing) are all supported.

Data types

The following data types are supported (use parse_npy_datatype() to decode them in plain language):

Caveats

The following data types are not yet supported, because we are unsure of their use cases. If you need support for any of these, please open an issue.

Dimensions

Any number of dimensions is supported, including zero-dimensional arrays (scalar values) and one-dimensional arrays (vectors). The shape of the original NumPy array is preserved in the output R object, and can be accessed with the dim() function.

Pickled objects

Python object array created with np.save(..., allow_pickle = True) are not supported.