From mboxrd@z Thu Jan 1 00:00:00 1970 From: jenia.ivlev@gmail.com (jenia.ivlev) Subject: Babel introduction example cannot be executed Date: Sun, 05 Oct 2014 01:19:11 -0400 Message-ID: <87ppe79jqo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaeGV-0002Rg-Jo for emacs-orgmode@gnu.org; Sun, 05 Oct 2014 01:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaeGN-0005ti-Vk for emacs-orgmode@gnu.org; Sun, 05 Oct 2014 01:21:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:52725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaeGN-0005tc-PO for emacs-orgmode@gnu.org; Sun, 05 Oct 2014 01:21:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XaeGI-0006l9-Tw for emacs-orgmode@gnu.org; Sun, 05 Oct 2014 07:21:38 +0200 Received: from modemcable112.235-178-173.mc.videotron.ca ([173.178.235.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Oct 2014 07:21:38 +0200 Received: from jenia.ivlev by modemcable112.235-178-173.mc.videotron.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Oct 2014 07:21:38 +0200 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: emacs-orgmode@gnu.org Hello. I want to run one of the examples on babel page. Normally, it's the simplest example the world has ever seen. I have a table of numbers and I want to take the evage of those number. Here is how I did it. Attemp 1: #+name: tbl-example-data() #+begin_src R runif(n=5, min=0, max=1) #+end_src #+RESULTS: tbl-example-data | 0.640676139388233 | | 0.509703768184409 | | 0.979426965117455 | | 0.560781393200159 | | 0.793947959318757 | #+name: R-mean(x) #+begin_src R mean(x) #+end_src When I execute the code here emacs tells me: Variable "x" in block "R-mean" must be assigned a default value. So what I didn was assign it a default value like so: #+name: R-mean(x) #+begin_src R :var x=tbl-example-data mean(x) #+end_src It tells me the exact same thing. What should I change here? Thanks in advance for your time and kind concern.