> i=im3d(seq(3*4*5), dims = c(3,4,5))
> tfhdr=tempfile(fileext = '.nhdr')
> write.im3d(i, file = tfhdr, format='nrrd', enc='raw')
Error in ifelse(enc == "gzip", gzfile, file)(file, open = fmode) :
attempt to apply non-function
not sure why this didn't come up previously but looks like an ambiguity between the file argument and file function.
not sure why this didn't come up previously but looks like an ambiguity between the file argument and file function.