askForPassword: Ask the user for a password interactively

Description Usage Arguments Details Note Examples

View source: R/stubs.R

Description

Ask the user for a password interactively.

Usage

1

Arguments

prompt

Single element character vector containing the prompt to be displayed

Details

RStudio also sets the global askpass option to the rstudioapi::askForPassword function so that it can be invoked in a front-end independent manner.

Note

The askForPassword function was added in version 0.99.853 of RStudio.

Examples

1
2
3
4
## Not run: 
rstudioapi::askForPassword("Please enter your password")

## End(Not run)

rstudioapi documentation built on May 20, 2017, 4:34 a.m.

Search within the rstudioapi package
Search all R packages, documentation and source code