fslr
fslr copied to clipboard
error in fslr function
Hello John, I am working on a project to do defacing, for which your library is being used in my script. We have used your library without any error for several months since we installed it. However, a following error suddenly recently appears when I run functions such as fslsmooth and CT_Skull_Strip_robust in fslr, even if fslr is sucessfully loaded in R.
smooth = fslsmooth(thresh.img, sigma = 0.5, retimg=TRUE)#sigma value to control to be soother
fslmaths "/tmp/Rtmpz4mcgw/file3897145cb153.nii.gz" -s 0.5 "/tmp/Rtmpz4mcgw/file389710b12b8f";
Error in (function (fname, onefile = TRUE, gzipped = TRUE, verbose = FALSE, : Not all data was read in: should be length 34078720 but only 32156 was read in!
Do you know why this error occurs and how should I fix it? Are there any requirements for installing particular versions of associated R packages to avoid this error in fslr? Any advice will be great help! Thanks, Tingyu