Skip to contents

When evaluating model input in evaluations, flag the input with input() and the output with output(), allowing for persistent logging of responses.

Usage

input(x)

output(x)

Arguments

x

A character string representing either the model input or output.

Value

x, as provided. Called for its side effect.

Examples

if (FALSE) {
test_that("the model works", {
  input <- input("some input")
  output <- output(some_function_call_generating_response(input))
})
}