R/readline_nomask.r

Defines functions readline_nomask

readline_nomask <- function(msg, noblank, silent=FALSE)
{
  if (!silent)
    message("WARNING: your platform is not supported. Input is not masked!")
  
  message(msg, appendLF=FALSE)
  pw <- readline()
  while (interactive() && isTRUE(noblank) && pw == "")
  {
    message("No blank input, please!", appendLF=FALSE)
    pw <- readline()
  }
  
  pw
}

Try the getPass package in your browser

Any scripts or data that you put into this service are public.

getPass documentation built on May 1, 2019, 10:15 p.m.