Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Server - Resuming R Session - message hanging or taking 15+min

I frequently work on a R-server environment. However, whenever come back to my work following the last working day, the system often gets stuck with 'resuming r session'. This might take upwards of 5-15min. I try to terminate R or restart R but often this doesn't really do anything.

I'm looking for a work-around as it is very frustrating to go to the R-server URL and to have to wait forever to get started again. IDEALLY, I'd be able to pick up right where I left off. However, if this can't be done, I guess that is ok….

I was looking around at the folder structure and I noticed that there is a folder called "Suspended-R-Session".

Within this folder are a few files such as:

  • 'options',
  • 'lib paths',
  • 'history',
  • 'environment_vars',
  • 'environment',
  • and 'settings'.

    Should I be deleting these files in order to speed up load time???

like image 501
runningbirds Avatar asked Apr 18 '17 01:04

runningbirds


1 Answers

As described in this link https://support.rstudio.com/hc/en-us/community/posts/200638878-resuming-session-hangup, in my case for R version 3.5:

    cd ~/.rstudio/sessions/active/session-45204d30
    rm -rf suspended-session-data
like image 171
Le Quang Nam Avatar answered Oct 02 '22 13:10

Le Quang Nam