From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: :session question Date: Thu, 28 Mar 2013 08:06:53 -0500 Message-ID: References: <51501AF2.1070405@easy-emacs.de> <8738vjugwd.fsf@gmail.com> <51516699.6090604@gmail.com> <87ip4ezf93.fsf@med.uni-goettingen.de> <87fvzi72ve.fsf@gmail.com> <87ip4e5gai.fsf@gmail.com> <5152B34E.4020004@easy-emacs.de> <87fvzhmbul.fsf@med.uni-goettingen.de> <5152D9F8.3040404@easy-emacs.de> <10996.1364384905@alphaville> <5152E38A.4050602@easy-emacs.de> <87hajx109o.fsf@gmail.com> <871ub1m0mm.fsf@med.uni-goettingen.de> <877gks26bg.fsf@gmail.com> <87wqsslhmh.fsf@med.uni-goettingen.de> <87k3oszilk.fsf@gmail.com> <87sj3flt2e.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULCXk-00071O-Gj for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 09:07:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULCXf-0000Kz-FY for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 09:07:00 -0400 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:45567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULCXf-0000Kf-8S for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 09:06:55 -0400 Received: by mail-la0-f48.google.com with SMTP id fq13so17378272lab.7 for ; Thu, 28 Mar 2013 06:06:54 -0700 (PDT) In-Reply-To: <87sj3flt2e.fsf@med.uni-goettingen.de> 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: Andreas Leha Cc: emacs-orgmode@gnu.org On Thu, Mar 28, 2013 at 5:25 AM, Andreas Leha wrote: > Hi Eric, > > Eric Schulte writes: > >> Andreas Leha 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) >> Is this the right way to require a language anymore? I thought it was: ;; active Babel languages (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) (http://orgmode.org/worg/org-contrib/babel/languages.html) > > 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. > > [...] > Well that's good; it's trying to start a session. > > 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%20Loca= l%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=C3=A4r 21:18:49 CET 2013 > > # Local Variables: > # org-babel-default-header-args:R: ((:session . "foo")) > # End: > #+end_org > Haven't really been following along, but this works for me (after execution= ): #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:session . "org-R"))) #+end_src These aren't: -*- org-babel-default-header-args:R: ((:session . "foo")) -*- #-*- org-babel-default-header-args:R: ((:session . "foo")) -*- There were a lot of suggestions made above and I've never used the -*-setting-*- syntax and am not searching the right things to find out more about how this is supposed to work. ETA: Ah, I had to re-open the file after adding this to the buffer to get it to recognize it: # Local Variables: # org-babel-default-header-args:R: ((:session . "foo")) # End: This produces the same issue as you, Andreas: Wrong type argument: sequencep, R: Not sure. I'm on 8.0-pre (release_8.0-pre-193-gaa7b1e). John >