Re: [R-SIG-Mac] Disable readline echo in R for mac GUI

2019-01-25 Thread Jeroen Ooms
If anyone else is also interested in this, I found a satisfactory solution to prompt for passwords in R.app using AppleScript. It is now available in the 'askpass' package on CRAN. On Thu, Nov 15, 2018 at 5:06 AM Jeroen Ooms wrote: > > When prompting the user for a password, we need to temporar

Re: [R-SIG-Mac] Disable readline echo in R for mac GUI

2018-11-15 Thread Dr Eberhard W Lisse
On my Mojave iMac commandArgs() returns on RStudio [1] "RStudio" "--interactive" on Mac GUI [1] "R" "--no-save" "--no-restore-data" "--gui=aqua" and on R command line [1] "/Library/Frameworks/R.framework/Resources/bin/exec/R" so maybe test for that? e

[R-SIG-Mac] Disable readline echo in R for mac GUI

2018-11-15 Thread Jeroen Ooms
When prompting the user for a password, we need to temporarily disable echo. In a tty we can call posix stty -echo (example below). The RStudio GUI has a native password entry function that can be triggered via getOption('askpass'). Is there simple method to prompt for a password in the R for Mac G