Ensures the output to be a character filename (or vector) from an input image or nifti.

checkimg(file, allow_array = FALSE, ...)

# S4 method for class 'nifti'
checkimg(file, allow_array = FALSE, ...)

# S4 method for class 'ANY'
checkimg(file, allow_array = FALSE, ...)

# S4 method for class 'character'
checkimg(file, allow_array = FALSE, ...)

# S4 method for class 'list'
checkimg(file, allow_array = FALSE, ...)

Arguments

file

character or nifti object

allow_array

allow arrays to be passed in

...

options passed to tempimg

Value

character filename of image or temporary nii, with .nii extension

Author

John Muschelli muschellij2@gmail.com