I would like to create a keyboard shortcut to start the R function in an existing R session. How can I do this on a Mac?
My first idea was to use
% R -slave <foo.R
and create a keyboard shortcut for the shell script with this command.
But this will start a new session R. Is there a way to send a command to an existing session from the shell?
source
share