emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Babel - simple getting started problem


From: Sébastien Vauban
Subject: [Orgmode] Re: Babel - simple getting started problem
Date: Mon, 07 Dec 2009 10:57:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Graham,

Graham Smith wrote:
> I know I must be missing the obvious here, but why can't I get babel+R
> to calculate a mean. See below
>
> Many thanks,
>
> Graham
>
> * test
> #+srcname:trial
> #+begin_src R
> x<-c(4,5,6,7,8,9)
> #+end_src
>
> #+resname: trial
> | 4 |
> | 5 |
> | 6 |
> | 7 |
> | 8 |
> | 9 |
>
>
> * meantest
> #+begin_src R
> mean(trial)
> #+end_src
>
> #+resname:
>
> error in buffer "source block produced no output"
>
> * meantest2
> #+begin_src R
> mean(x)
> #+end_src
>
> #+resname:
>
> error in buffer "source block produced no output"

You must pass somehow the variable you want to work with.

See http://eschulte.github.com/org-babel/org-babel.org.html and its example 1.

Seb

-- 
Sébastien Vauban





reply via email to

[Prev in Thread] Current Thread [Next in Thread]