From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neuwirth Erich Subject: Beginner's question Date: Thu, 21 Jun 2012 07:11:15 +0200 Message-ID: Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShZfw-0000IA-Dl for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 01:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShZfu-00010o-M5 for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 01:11:23 -0400 Received: from grace.univie.ac.at ([131.130.3.115]:45101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShZfu-0000zy-CY for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 01:11:22 -0400 Received: from jarvis.univie.ac.at ([131.130.3.112] helo=jarvis.univie.ac.at) by grace.univie.ac.at with esmtp (Exim 4.80) (envelope-from ) id 1ShZfo-0003W2-1I for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 07:11:16 +0200 Received: from 91-114-200-142.adsl.highway.telekom.at ([91.114.200.142] helo=[10.0.0.4]) by jarvis.univie.ac.at with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1ShZfn-0008L4-Un for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 07:11:16 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I am using R. I am combining large data frames, and I am getting into memory problems. Therefore I would like to to this in separate steps and after each step = the R process should be closed to free memory. When I do not use the :session argument for the code blocks, it seems = that the R process is terminated after the code is run. I also tried to use separate sessions to achieve what I want and in each = code block I used quit(save=3D"no") at the end. That did not work. I would like to use a piece of initialization code in each of these code = blocks but could not find an understandable example how to use name code blocks and noweb = references to achieve this. Or can I do out with #+name: and a :var header = argument? Is there a way to do this? I tried to understand :var with the following example The first code block is from the docs and it works. The second is by me and it does not work. Can anybody explain why my example does not work? #+TBLNAME: example-table |1| |2| |3| |4| #+NAME: table-length #+BEGIN_SRC emacs-lisp :var table=3Dexample-table (length table) #+END_SRC #+RESULTS: table-length : 4 #+name: xvar 123 #+name: myblock #+begin_src emacs-lisp :var xxx=3Dxvar (* xxx xxx) #+end_src I need to pass string constants and numeric values o code segments this = way.=