muschellij2 / itksnapr

R Package to Wrap ITK-SNAP
2 stars 0 forks source link

itksnap(grayscale) function #6

Open LinacRT opened 3 weeks ago

LinacRT commented 3 weeks ago

Hi, very sorry to ask again. I've tried providing more details incase this helps. Let me know if this is the wrong place to ask though! ie - if its a "me not understanding R studio problem" rather than a package issue. Thanks.

I am trying to open a Nifti file in Rstudio: these two lines of code work fine - I can see the image in the "plots":

T1Cbrain <- readnii("h01157/T1C1_bet2.nii.gz", reorient = F)
ortho2(T1Cbrain)

now,

itksnap(T1Cbrain) Error in download.file(url, destfile, quiet = TRUE) : cannot open URL 'https://github.com/muschellij2/itksnapr/raw/gh-pages/darwin-aarch64.zip' In addition: Warning message: In download.file(url, destfile, quiet = TRUE) : cannot open URL 'https://github.com/muschellij2/itksnapr/raw/gh-pages/darwin-aarch64.zip': HTTP status was '404 Not Found'

Same error if I try to install the ITK-SNAP binary

install_itksnap(arch = R.Version()$arch, lib.loc = NULL) Error in download.file(url, destfile, quiet = TRUE) : cannot open URL 'https://github.com/muschellij2/itksnapr/raw/gh-pages/darwin-aarch64.zip' In addition: Warning message: In download.file(url, destfile, quiet = TRUE) : cannot open URL 'https://github.com/muschellij2/itksnapr/raw/gh-pages/darwin-aarch64.zip': HTTP status was '404 Not Found'

muschellij2 commented 3 weeks ago

Please read https://reprex.tidyverse.org/ and also provide your sessioninfo:

sessioninfo::package_info("itksnapr")