From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Babel - simple getting started problem Date: Mon, 07 Dec 2009 10:57:02 +0100 Message-ID: <87ws0zyump.fsf@mundaneum.com> References: <2c75873c0912062320m20284efawb5b4414fa5593691@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode