You are welcome! Unfortunately, I don't know how to fix some bugs yet.
Originally Posted by bgc
If you are using xterm, then, if you replace the line 76 of ftplugin/r.vim:
let b:term_cmd = "uxterm -T 'R' -e"
The buffer name will be included in the xterm window title.
let b:term_cmd = "uxterm -T 'R - " . bufname("%") . "' -e"
I can reproduce the bug that you described if I close the xterm by clicking in the "close" button at the xterm's title bar. The R process uses nearly 100% of the CPU and Vim freezes. Are you closing the xterm directly? R listens to a pipe file and not to xterm and outputs to xterm. So, it keeps running when xterm is closed, but can't output anything. R's quit() command is the better way of really closing R's session when using the plugin. (The other way is sending the INT signal from Vim).