Fresh new session for rstudio-server

后端 未结 5 1467
时光取名叫无心
时光取名叫无心 2021-02-01 16:03

I am running rstudio-server on a virtualised (vmware-player) ubuntu machine, and processing lots of data into the ram. I find that after some inactivity that the session suspend

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 16:20

    Your question is a while back but after running into this problem a zilion times i found a way to reset the Rstudio Shiny Server session without the need for admin rights on Rstudio Shiny Server:

    • put temporarily as first line in server.r : quit("yes") # FORCE CLOSE OF SESSION server

    • go to the site and it will crash (the session closes straight away)

    • delete or comment out: # quit("yes") # FORCE CLOSE OF SESSION server
    • go to the site and you will have the shiny app with a new session =^)

    Works for me and saves a lot of time searching through all kind of system folders or the need to enter a part of the system that you are not allowed to go or needing admin rights on Rstudio Shiny Server.

    I hope this helps.

提交回复
热议问题