raw_input: Input from the terminal (in interactive use)

Description Usage Arguments Value Author(s) Examples

View source: R/util.R

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 29, 2017, 9:58 p.m.