From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graham Smith Subject: Babel - simple getting started problem Date: Mon, 7 Dec 2009 07:20:19 +0000 Message-ID: <2c75873c0912062320m20284efawb5b4414fa5593691@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHXtS-0001Qi-Rv for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 02:20:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHXtN-0001Ia-F5 for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 02:20:25 -0500 Received: from [199.232.76.173] (port=34879 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHXtN-0001II-6N for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 02:20:21 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:36718) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHXtN-00074d-3E for emacs-orgmode@gnu.org; Mon, 07 Dec 2009 02:20:21 -0500 Received: by fxm5 with SMTP id 5so4307936fxm.8 for ; Sun, 06 Dec 2009 23:20:19 -0800 (PST) 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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"