error_not_antsImage: Stop if not an antsImage object

Description Usage Arguments Value Examples

Description

Stop if not an antsImage object

Usage

1
error_not_antsImage(x, argname = "")

Arguments

x

object to test

argname

Name of argument to say was not an antsImage

Value

Invisible NULL

Examples

1
2
3
img = antsImageRead(getANTsRData('r16'), 2)
error_not_antsImage(img) 
testthat::expect_error(error_not_antsImage(as.array(img)))

muschellij2/atropos documentation built on May 4, 2019, 3:17 p.m.