expect_pipeline_result {imbibe}R Documentation

Expectation for testing pipeline output

Description

This function provides an expectation for use with the "tinytest" package, which runs the pipeline specified in its first argument and compares the result to its second.

Usage

expect_pipeline_result(current, target, precision = "double", ...)

Arguments

current

The pipeline to run, which should have class "imbibe".

target

The target value to compare against, a numeric array of some kind, which will be converted to a "niftiImage" object.

precision

A string specifying the working precision. Passed to run.

...

Further arguments to expect_equal.

Value

A "tinytest" object.


[Package imbibe version 0.1.1 Index]