title: RStudio Server on ec2 - Not persistent when closing browser tab
body: <p>I am running RStudio server on an ec2 instance (using Louis Aslett's AMI) and connect through the browser.</p>
  
  <p>I have some long scripts to run and thought I would be able to leave them running and close the browser tab/turn off my computer. </p>
  
  <p>However, when I do this it seems to interrupt the console and when I log back into the server (pasting address into address bar and logging back in) I am met with an alert telling me that the R session terminated and my workspace is completely reset (working directory reset,  and any data or variables lost). </p>
  
  <p>Note that I am not terminating the instance, I am simply closing the browser tab that RStudio is loaded in. </p>
  
  <p>Am I doing something wrong? Is there a proper way to disconnect safely and prevent this from happening?</p>
  
  <p>Thanks</p>