-
Notifications
You must be signed in to change notification settings - Fork 35
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
R version issues #389
Comments
I think the problem (for R >=4.2) is here over in ANTsRCore: The breaking change in R 4.2.0 is documented in R news as follows:
I guess you can do something like
to ensure that the result is a logical of length 1 or check for whatever else distinguishes between the signalling value of |
Fix works fine, thank you. I wonder if this needs to be committed to the repo? Because this is going to fail for anyone who has more than items in the transform. if this is a frowned upon thing (i.e., the goal of transformList is only to pass a single transform, like a prior affine), than perhaps documentation needs to be updated. |
In the current implementation, multiple transform files should be allowed, but multiple linear antsTransform objects are not. There's some manipulation of the antsTransform objects that I don't understand, so I've left it alone. But it should support using a vector of file names like |
I recently moved to R 4.3.1 from 4.1.2. This line of code for two step registrations seems to work fine in 4.1.2, with a warning about transform orders (which I always got).
but same code fails with this error in 4.3.1
Error in if (is.na(initx)) { : the condition has length > 1
Here is the session info for both R versions. As far as I can tell both have the same ANTs versions. Not sure where the error is coming from.
R4.1.2
R 4.3.1:
The text was updated successfully, but these errors were encountered: