Search notes:

R function: readline

readline() reads a line from the terminal (= stdin?) and returns the entered value as character string.
A prompt can be specified.
The entered new line won't be returned.
enteredValue <- readline(prompt = 'Enter a value: ');

See also

Index to (some) R functions

Index