From: John Hendy <jw.hendy@gmail.com>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: :session question
Date: Thu, 28 Mar 2013 08:06:53 -0500 [thread overview]
Message-ID: <CA+M2ft_iH3b5EZBN7GDE=3FuMrS17+0JRMhvKqwsbP8yzcY9Xw@mail.gmail.com> (raw)
In-Reply-To: <87sj3flt2e.fsf@med.uni-goettingen.de>
On Thu, Mar 28, 2013 at 5:25 AM, Andreas Leha
<andreas.leha@med.uni-goettingen.de> wrote:
> Hi Eric,
>
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Andreas Leha <andreas.leha@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)
>>
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%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
>
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
>
next prev parent reply other threads:[~2013-03-28 13:07 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-25 9:37 :session question Andreas Röhler
2013-03-25 23:58 ` Michael Gauland
2013-03-26 0:46 ` Eric Schulte
2013-03-26 8:37 ` Andreas Röhler
2013-03-26 9:12 ` Rainer M Krug
2013-03-26 9:23 ` Andreas Leha
2013-03-26 12:37 ` Eric Schulte
2013-03-26 12:44 ` Andreas Leha
2013-03-26 12:55 ` Achim Gratz
2013-03-26 15:31 ` Eric Schulte
2013-03-27 8:01 ` :session question - header argument setting Rainer M Krug
2013-03-27 8:35 ` Sebastien Vauban
2013-03-27 8:52 ` :session question Andreas Röhler
2013-03-27 9:27 ` Andreas Leha
2013-03-27 11:37 ` Andreas Röhler
2013-03-27 11:48 ` Nick Dokos
2013-03-27 12:18 ` Andreas Röhler
2013-03-27 12:22 ` Rainer M Krug
2013-03-27 12:47 ` Andreas Röhler
2013-03-27 12:43 ` Eric Schulte
2013-03-27 13:26 ` Andreas Röhler
2013-03-27 13:29 ` Andreas Leha
2013-03-27 15:47 ` Eric Schulte
2013-03-27 20:20 ` Andreas Leha
2013-03-27 20:35 ` Eric Schulte
2013-03-28 10:25 ` Andreas Leha
2013-03-28 13:06 ` John Hendy [this message]
2013-03-28 19:35 ` :session question - a simple PATCH Andreas Leha
2013-03-29 9:59 ` Achim Gratz
2013-03-29 14:38 ` Eric Schulte
2013-03-28 13:22 ` :session question John Hendy
2013-03-27 20:59 ` Andreas Röhler
2013-03-27 11:19 ` Andreas Leha
2013-04-28 15:46 ` Achim Gratz
2013-05-01 17:18 ` Eric Schulte
2013-05-01 17:36 ` Achim Gratz
2013-05-09 18:52 ` Achim Gratz
2013-06-07 16:15 ` Achim Gratz
2013-06-07 19:07 ` :session question -- and changes to #+Property: syntax Eric Schulte
2013-06-07 19:49 ` Achim Gratz
2013-06-07 20:22 ` Andreas Leha
2013-06-10 8:16 ` Rainer M Krug
2013-06-08 7:47 ` Achim Gratz
2013-06-08 18:08 ` Eric Schulte
2013-06-08 20:48 ` Achim Gratz
2013-06-10 8:21 ` Rainer M Krug
2013-06-10 19:16 ` Achim Gratz
2013-06-18 20:41 ` Achim Gratz
2013-06-19 10:10 ` Michael Brand
2013-06-20 16:27 ` Eric Schulte
2013-06-20 17:47 ` Achim Gratz
2013-06-20 18:31 ` Eric Schulte
2013-06-20 19:14 ` Achim Gratz
2013-06-20 19:28 ` Eric Schulte
2013-06-23 17:50 ` Achim Gratz
2013-06-25 14:20 ` Eric Schulte
2013-06-25 18:28 ` Achim Gratz
2013-06-10 8:14 ` :session question Rainer M Krug
2013-06-10 8:12 ` Rainer M Krug
2013-03-27 8:26 ` Andreas Röhler
2013-03-26 6:41 ` Andreas Röhler
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='CA+M2ft_iH3b5EZBN7GDE=3FuMrS17+0JRMhvKqwsbP8yzcY9Xw@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=andreas.leha@med.uni-goettingen.de \
--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).