Preset: sets the preset input global variable, which if not empty...

Description Usage Arguments Details

Description

Allows tests to preset the userinput without interrupting the test with .ReadLine.

Usage

1
Preset(user.input.strings = character())

Arguments

user.input.strings

character

Details

This should probably not be used except for its designed purpose of unit tests on scripts that use userinput. It could cause unexpected behaviour if by mistake something is left in the preset.input variable. Use on.exit(Preset())


peichins/userinput documentation built on May 25, 2019, 12:44 a.m.