type '?readline' in your R command prompt to receive help about how to use the function readline() since this is what you're looking for. Regards!