Is there a way in R to enter passwords interactively to the command line and hide them from the screen? I know there's readLine
, but I do not know passwords can be hidden there.
Assume you want to connect to a database using ROracle
or RMySQL
and do not want to store the password in a script but rather make the user enter it every time a query is executed.
Yes, we had a similar question around here, but I feel that the situation has changed and it's worth to address to problem again. Unfortunately tcltk
won't work on RStudio (Server).
However I have seen the folks at R Studio found a solution for their version control support. I remember previous versions where I could see my repo password every time I enter it in R Studio, but now that seems to be fixed. I know it's likely R Studio technique, but is there a way mortal R users can access it when working with R Studio Server?