Errors in buliding ANTsR vigniettes
JPolzehl opened this issue · 1 comments
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):
- OS: Ubuntu 22.04 LTS
- R 4.2.0
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