powered by
read_multilines reads one or more lines from the terminal (in interactive use).
read_multilines
read_multilines(prompt = "")
the string printed when prompting the user for input. Should usually end with a space " ".
" "
This function repeatedly calls readline until enough inputs are provided to reach a successful parse.
readline
This can only be used in an interactive session.
if (FALSE) { # In an interactive session read_multilines() 1 + 2 # expect immediate success read_multilines() 1 + 2 + 3 # expect success here }
Run the code above in your browser using DataLab