Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in buliding ANTsR vigniettes #366

Open
JPolzehl opened this issue Jun 8, 2022 · 1 comment
Open

Errors in buliding ANTsR vigniettes #366

JPolzehl opened this issue Jun 8, 2022 · 1 comment

Comments

@JPolzehl
Copy link

JPolzehl commented Jun 8, 2022

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
@stnava
Copy link
Member

stnava commented Jun 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants