Sometimes R takes a lot of time to finish a trivial task, like when I ask it to print something and it turns out that it is too long or complicated and R just sits there at 100% CPU utilization. What are my options? Ctrl-C does not help. Is there a way to kill R so that it saves the workspace beforehand?
PS. I am running under Emacs/ESS on Mac OS X. I know about process management under Unix (C-c, C-z, bg/bg, kill &c). I wonder about R-specific tricks (e.g., "if you send signal SIGUSR1
to R, it will silently save workspace and exit immediately" - believe it or not, I wrote the previous sentence before I found the linked answer :-).