I often use R (on Windows) to start many independent shell processes in external terminals; e.g.:
shell("start cmd /K [run batch script]")
Once I close R the shell terminals stay open and keep running. If I do this from within RStudio and then close RStudio it will close all shell terminals. Is there any way to tell RStudio to not terminate the shell terminals when it is closed?