powered by
Ask the user for a password interactively.
askForPassword(prompt)
Single element character vector containing the prompt to be displayed
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
# NOT RUN { rstudioapi::askForPassword("Please enter your password") # }
Run the code above in your browser using DataLab