raw_input: Input from the terminal (in interactive use)

Description Usage Arguments Value Author(s) Examples

Description

Input from the terminal (in interactive use), confined by choice if provided.

Usage

1
raw_input(msg = "", choice, strip = TRUE)

Arguments

msg

character, a message to input

choice

character, choices to confine the input

strip

logical, whether to strip trailing spaces of the input

Value

character

Author(s)

Xiaobei Zhao

Examples

1
2
3
4
5
## Not run: 
raw_input("Please enter user name: ")
raw_input("Please confirm",choice=c("yes","no"))

## End(Not run)

Xmisc documentation built on May 2, 2019, 8:23 a.m.