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

Obsolete examples? #155

Open
dipterix opened this issue Feb 25, 2023 · 0 comments
Open

Obsolete examples? #155

dipterix opened this issue Feb 25, 2023 · 0 comments

Comments

@dipterix
Copy link

Describe the bug

ANTsRCore failed R CMD check:

> ### Name: antsImageWrite
> ### Title: Image Write
> ### Aliases: antsImageWrite
> 
> ### ** Examples
> 
> 
> fn <- getANTsRData( "r16" )
> fi <- antsImageRead( fn )
> antsImageWrite( fi , tempfile( fileext = ".nii.gz" ) )
> antsImageWrite( fi , tempfile( fileext = ".mha" ) )
> antsImageWrite( fi , tempfile( fileext = ".nrrd" ) )
> antsImageWrite( antsImageClone( fi, "unsigned int" ) ,
+   tempfile( fileext = ".jpg" )  )
Warning in antsImageWrite(antsImageClone(fi, "unsigned int"), tempfile(fileext = ".jpg")) :
  Writing JPG file, but pixeltype is not unsigned char/int, please runantsImageClone(image, out_pixeltype = 'int')
or
antsImageClone(image, out_pixeltype = 'unsigned char')
Error: Error: /Users/runner/work/dipterix/dipterix/ITKR.Rcheck/00_pkg_src/ITKR/src/itks/Modules/IO/JPEG/src/itkJPEGImageIO.cxx:466:
ITK ERROR: JPEGImageIO(0x7faad1de29f0): JPEG supports unsigned char only

Please see https://github.com/r-universe/dipterix/actions/runs/4256380153/jobs/7430825036#step:7:711

To Reproduce

Run R CMD check

Desktop (please complete the following information):

  • OS: OSX

Maybe the examples are not updated?

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

1 participant