Open JPolzehl opened 2 years ago
very strange error - cannot reproduce on osx or ubuntu 18.04 - do not have ubuntu 22.04LTS
this suggests an issue with ITK I/O library loading.
may be resolved by a clean reinstall from scratch as this "should" not happen, generally speaking. ie I/O libraries should all be there (well tested stuff, generally speaking)
that's a quick-look/guess
Describe the bug Standard build of ANTsR with R CMD build fails due to errors in building vignettes
To Reproduce Installing without vignettes and compilation of Rmd files produces the following:
running antsrTransform.Rmd: in applyAntsrTransformToVector line 4 if (class(vectors) == "numeric")
class(vectors) (is c("matrix","array") ) has has length 2 (under R 4.x.x)
running ANTsR.Rmd causes an ITK error in line 275 jac<-createJacobianDeterminantImage(fi,mytx$fwdtransforms[[1]],1)
ITK ExceptionObject caught! Fehler in createJacobianDeterminantImage(fi, mytx$fwdtransforms[[1]], 1) : /home/polzehl/R/x86_64-pc-linux-gnu-library/4.2/ITKR/libs/include/ITK-5.3/itkImageFileReader.hxx:132: Could not create IO object for reading file /tmp/Rtmp78rrnH/file87c877dddf371Warp.nii.gz Tried to create one of the following: MGHImageIO You probably failed to set a file suffix, or set the suffix to an unsupported type.
Desktop (please complete the following information):