Is there a way to disable the masking in the rstudioapi::askForPassword pop up window so a user can enter their username?
I am building a function I can share with my team for connecting to our Oracle DB instance using the ROracle pacakge
Current solution,
connection <- dbConnect(
driver
, username = rstudioapi::askForPassword(prompt = 'Please enter username: ')
, password = rstudioapi::askForPassword(prompt = 'Password: ')
, dbname = 'my.connection.string'
)
This pops up the following prompt: (image in link)
which is the solution described in the RStudio database docs that uses the Rstudio api
Would like to fund a solution that does not mask the password but pops up the same prompt (one nice line of code if possible...)
readline()
frombase
? If you need it to be graphical, writing a Shiny Gadget (miniUI
) for this is trivial. – Vidovik