Sometimes it can be interesting to have a cross-talk between the user and the program, one example being the swirl package that had been designed to teach R in R.
One can ask for user input using the readline command:
name <- readline(prompt = "What is your name?")
The user can the...