> > 1) > It does not run, because org tries to do the prologue also on the > emacs-lisp block defining the function of the prologue. So, I get > "format: Symbol's function definition is void: get-current-name" > I changed the #+property line to > #+Property: header-args:R :prologue (format "print(\"entering %s\")" (get-current-name)) > which solved that problem. > > 2) > But still it does not work: This is what I get in my *R* buffer: > --8<---------------cut here---------------start------------->8--- > > R version 3.0.1 (2013-05-16) -- "Good Sport" > Copyright (C) 2013 The R Foundation for Statistical Computing > Platform: x86_64-pc-linux-gnu (64-bit) > > R ist freie Software und kommt OHNE JEGLICHE GARANTIE. > Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten. > Tippen Sie 'license()' or 'licence()' für Details dazu. > > R ist ein Gemeinschaftsprojekt mit vielen Beitragenden. > Tippen Sie 'contributors()' für mehr Information und 'citation()', > um zu erfahren, wie R oder R packages in Publikationen zitiert werden können. > > Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder > 'help.start()' für eine HTML Browserschnittstelle zur Hilfe. > Tippen Sie 'q()', um R zu verlassen. > > [1] "C" > filehash: Simple key-value database (2.2-1 2012-03-12) > tikzDevice: R Graphics Output in LaTeX Format (v0.6.2-92-0ad2792) > LaTeX found in the PATH using the command: pdflatex > XeLaTeX found in the PATH using the command: xelatex > LuaLaTeX found in the PATH using the command: lualatex >> options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient', show.error.locations=TRUE) >> >> > >> > > --8<---------------cut here---------------end--------------->8--- > > I tried it with > - Org-mode version 8.0.4 (release_8.0.4-294-g62f20c) > - ess-version : 13.05-1 [] > - emacs -Q -l ~/.emacs.minimal.ess.org, whith that content: > --8<---------------cut here---------------start------------->8--- > (add-to-list 'load-path > "~/local/emacs/org-mode-install/lisp") > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > > (add-to-list 'load-path "~/local/emacs/ess/lisp") > (require 'ess-site) > > (setq org-babel-load-languages '((emacs-lisp . t) > (R . t) > (sh . t))) > --8<---------------cut here---------------end--------------->8--- > > What am I missing? (BTW: If I put a print("sth") into the R blocks > myself, I see that printed) > > > 3) > Even if it did run, I guess putting sth similar for 'leaving code block > foo' into the epilogue would spoil the return value of my src blocks, > correct? > Is there some work-around? > > > > Regards, > Andreas > > > -- Eric Schulte http://cs.unm.edu/~eschulte