I'm wondering if there is a way that I can read user input from STDIN without echoing it back to the screen in R. I know that readline()
, readLines()
and scan()
can read in user input from the keyboard but none appear to have an option to not echo back.
As you might expect this is to grab a password. So I'm looking for something that would let me do:
> a<-get_password()
Password:
> a
[1] "password"