# NOT RUN {
if (have_fs() && requireNamespace("oro.nifti", quietly = TRUE)) {
img = oro.nifti::nifti(array(rnorm(5*5*5), dim = c(5,5,5)))
res = mri_convert(img, outfile = tempfile(fileext = ".mgz"))
}
# }
Run the code above in your browser using DataLab