1

I was looking here and also in Google without any luck. I hope anyone can advise something.

I need to read from the R console and I need the input not to be echoed or masked as *** or blanks.

The only thing I found is: Is it possible to read from the console with scan without echoing the characters? and I don't know how to do that.

If anyone knows a way to do this will be terrific.

Thanks in advance for your time.

Community
  • 1
  • 1
notuo
  • 1,091
  • 2
  • 9
  • 15

1 Answers1

1

There does not seem to be a native solution for R running in Windows. However, I found this terrific post which uses the tcltk package. The example generates a separate popup window into which the user can enter a masked password.

enter image description here

Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360