Get password from the user if interactive()

ask_password()

Value

Invisibly returns a string if interactive(). If it is not an interactive R session, then a stop() message is displayed on the console.

Author

Kelli F. Johnson