R package providing ‘mio’ header files (https://github.com/mandreyel/mio)
And some R functions for creating and resizing files.