C-g tells emacs to stop waiting for the completion of the R interaction. After C-g, you can do other emacs work at the same time as the R task completes.