getPass

A micro-package for reading user input in R with masking, i.e., the input is not displayed as it is typed.

Currently, RStudio, the command line (any OS), and platforms where the tcltk package is available are supported. We believe this hits just about everything, but for unsupported platforms, non-masked reading (with a warning) is optionally available. See the package vignette for more information.

Usage

getPass::getPass()

Installation

You can install the stable version from CRAN using the usual install.packages():

install.packages("getPass")

The development version is maintained on GitHub, and can easily be installed by any of the packages that offer installations from GitHub:

### Pick your preference
devtools::install_github("wrathematics/getPass")
ghit::install_github("wrathematics/getPass")
remotes::install_github("wrathematics/getPass")