From 850190d9ecd81f972aa0820fbe6cf0ce47569040 Mon Sep 17 00:00:00 2001
From: Dirk Sarpe <dirk.sarpe@idiv.de>
Date: Fri, 27 Sep 2019 08:33:38 +0200
Subject: [PATCH] extend ending R session

maybe some ide people do not know quit()
---
 rstudio1.md | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/rstudio1.md b/rstudio1.md
index 542a772..2362e6b 100644
--- a/rstudio1.md
+++ b/rstudio1.md
@@ -3,7 +3,18 @@
 ## Access Web-IDE of RStudio
 1. [https://rstudio.idiv.de](https://rstudio.idiv.de)
 1. use your iDiv username and password to login
-1. please remember to end your session when you have finished your current calculations (red button upper right)
+1. please remember to end your session when you have finished your current
+   calculations
+    - interactively via the red button in the upper right
+    - in your longer running scripts use a statement like this after your
+        computations. You might want to replace `save.image()` with `save()` if
+        you are only interested in some result data and not the whole
+        workspace.
+      ```R
+      # above some fancy computations
+      save.image('/data/myproject/myproject.RData')
+      quit(save = 'no')
+      ```
 1. if you want to run jobs for weeks or which require many cores (>10) for multiple days, please contact [it-support@idiv.de](mailto:it-support@idiv.de) beforehand. At this point you should consider to move to the HPC cluster.
 
 ## ssh access
-- 
GitLab