multiple Rstudio sessions following the use of the parallel package
问题 I've recently run into an issue when using Rstudio-Server that multiple sessions are spawned instead of a single session. In my case (see below) five sessions are created instead of one. This happens even after trying the normal solutions: deleting ~/.rstudio , clearing .GlobalEnv , and restarting R. Note, there is no spawning issue when using the R command prompt. My belief about the source of this problem is that it is due to a prematurely terminated mclapply . Here are the relevant docs