powered by
Ask the user for a password interactively.
askForPassword(prompt = "Please enter your password")
The prompt to be shown to the user.
RStudio also sets the global askpass option to the rstudioapi::askForPassword function so that it can be invoked in a front-end independent manner.
askpass
rstudioapi::askForPassword
if (FALSE) { rstudioapi::askForPassword("Please enter your password") }
Run the code above in your browser using DataLab