Hi Eric, Eric Schulte <schulte.e...@gmail.com> writes:
> Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > > [...] >> >> Is that just not working for me? And any ideas, what I could do about >> it? >> > > I have no good ideas. Is the `org-babel-default-header-args:R' variable > defined on your system before you load this file? If not, maybe you > should be sure to add > > (require 'ob-R) > The variable is defined (value is nil). I added the (require 'ob-R) to my initialization nonetheless, but no avail. The value of `org-babel-default-header-args:R' stays nil. > to your emacs initialization. If the ":" in the variable name is > somehow confusing your Emacs, then possibly you could use the alternate > format of specifying file local variables (see the info link in my > attached example). I tried (the file is below). In this case I even get the question on unsafe variables. [...] Thanks for the suggestions anyway, Andreas PS: the file again: #+begin_org #+Title: Example #+Author: Eric Schulte For more information on file local variables see [[info:elisp#File%20Local%20Variables][info:elisp#File Local Variables]]. Because there is a default :session values assigned locally for R blocks we have the following. #+begin_src R x <- 1 x #+end_src #+RESULTS: : 1 #+begin_src R x #+end_src #+RESULTS: But non-R code blocks do not have a default session value. #+begin_src sh date #+end_src #+RESULTS: : Mi 27. Mär 21:18:49 CET 2013 # Local Variables: # org-babel-default-header-args:R: ((:session . "foo")) # End: #+end_org