From: Neuwirth Erich <erich.neuwirth@univie.ac.at>
To: emacs-orgmode@gnu.org
Subject: Beginner's question
Date: Thu, 21 Jun 2012 07:11:15 +0200 [thread overview]
Message-ID: <F74FF8BC-E1E3-42CB-87E4-4D23AEEAB399@univie.ac.at> (raw)
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="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=example-table
(length table)
#+END_SRC
#+RESULTS: table-length
: 4
#+name: xvar
123
#+name: myblock
#+begin_src emacs-lisp :var xxx=xvar
(* xxx xxx)
#+end_src
I need to pass string constants and numeric values o code segments this way.
next reply other threads:[~2012-06-21 5:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 5:11 Neuwirth Erich [this message]
2012-06-21 8:53 ` Beginner's question Sebastien Vauban
2012-06-21 10:27 ` suvayu ali
2012-06-21 11:28 ` Sebastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F74FF8BC-E1E3-42CB-87E4-4D23AEEAB399@univie.ac.at \
--to=erich.neuwirth@univie.ac.at \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).