View source: R/error_not_antsImage.R
error_not_antsImage | R Documentation |
Stop if not an antsImage object
error_not_antsImage(x, argname = "")
x |
object to test |
argname |
Name of argument to say was not an |
Invisible NULL
img <- antsImageRead(getANTsRData("r16"), 2)
error_not_antsImage(img)
testthat::expect_error(error_not_antsImage(as.array(img)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.