Hi! I'm observing something quite unexpected when the message prompt contains a word "username".
My expectation is to have identical behavior regardless of msg. For example, without GUI all looks fine:
R> getPass("username: ")
username: ***
[1] "123"
When using the same call in RStudio, however, I see
The password is not masked. Adding forcemask = TRUE doesn't help either. After a bit of digging around, I discovered that the culprit is rstudioapi::askForPassword. I'll take this issue to them, but I think you should be aware anyways.
My use case is a prompt like "Enter password for username %username%".
Hi! I'm observing something quite unexpected when the message prompt contains a word "username".
My expectation is to have identical behavior regardless of
msg
. For example, without GUI all looks fine:When using the same call in RStudio, however, I see
The password is not masked. Adding
forcemask = TRUE
doesn't help either. After a bit of digging around, I discovered that the culprit isrstudioapi::askForPassword
. I'll take this issue to them, but I think you should be aware anyways.My use case is a prompt like "Enter password for username %username%".