0

I am running a code in R that takes a long time to give me the results. I lock the PC (Linux OS) and it continues to run but after one hour or so the Rstudio closes automatically and when I unlock the screen I see that Rstudio is closed and the running of code has stopped. How can I prevent R from stopping. I have disabled the PC from going to sleep or being suspended.

Helia
  • 228
  • 1
  • 10
  • 2
    run from terminal? `Rscript yourscript.R` – cory Jun 18 '19 at 18:56
  • Thank you for your comment. Running from terminal takes more time than running from Rstudio. At this point, time really matters to me. – Helia Jun 18 '19 at 20:51
  • 1
    That's great. I had not heard of Rstudio performance improvements to running R scripts. – cory Jun 19 '19 at 11:22
  • I checked my code again, you are right there is no difference in terms of running time for running as Rscript or running in Rstudio. I really appreciate your quick response, thank you so much, it helped me a lot. – Helia Jun 19 '19 at 17:51

0 Answers0