RandomFields (version 2.0.71)

Readline: Read a Line

Description

Readline reads a line from the terminal or from storage

Usage

Readline(prompt="", info=NULL)

Arguments

prompt
the string printed when prompting the user for input. Should usually end with a space " "
info
arbitrary object; tracing information that is useful in case the user likes to edit the stored sequence of inputs; the value of info is considered only if useraction has be

Value

  • A character vector of length one.

Details

The behaviour of Readline depends on the the value of action set by useraction, see there for more information. The prompt string will be truncated to a maximum allowed length, normally 256 chars (but can be changed in the source code), since the function is based on readline.

See Also

getactions, Locator, readline useraction, userinput,

Examples

Run this code
## see useraction

Run the code above in your browser using DataCamp Workspace