How can I execute a system command that normally requires user interaction? For example, I would like to run:
system("ssh-keygen")
At the terminal prompt, it looks like this:
iMac-2:~ admin$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/admin/.ssh/id_rsa):
In RStudio, this command causes the application to hang.
I've tried the options wait=FALSE
, AND invisible=FALSE
, but they don't seem to help.