askForPassword | R Documentation |
Ask the user for a password interactively.
askForPassword(prompt = "Please enter your password")
prompt |
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.
The askForPassword
function was added in version 0.99.853 of
RStudio.
## Not run:
rstudioapi::askForPassword("Please enter your password")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.