Takes in a object of class nifti, writes it
to a temp file, appends
.nii.gz as writenii
adds it.
tempimg(
nim,
gzipped = TRUE,
checknan = TRUE,
check_type = FALSE,
warn = FALSE,
drop_dim = TRUE,
dtype = TRUE,
...
)
filename of output nii.gz
object of class nifti
Should file be gzipped? Passed to
writenii
Check for NAs or NaNs
Check the datatype for an image. Will run datatyper
.
Should warnings be displayed if writenii
has
any? Passed to writenii
.
Should drop_img_dim
be applied?
Should datatyper
be run before writing?
Should override `check_type`
Passed to writenii
.