registerInputProcessor: Register an input processor for the test recorder

View source: R/recorder.R

registerInputProcessorR Documentation

Register an input processor for the test recorder

Description

registerInputProcessor() registers an input processor which will be used by the test recorder. The input processor function should take one parameter, value, and return a string of R code which returns the desired value.

getInputProcessors() returns a named list of all registered input processor functions.

Usage

registerInputProcessor(inputType, processor)

getInputProcessors()

Arguments

inputType

The name of an input type, for example, "mypkg.numberinput".

processor

An input processor function.


shinytest documentation built on May 29, 2024, 6:33 a.m.