From: jenia.ivlev@gmail.com (jenia.ivlev)
To: emacs-orgmode@gnu.org
Subject: Babel introduction example cannot be executed
Date: Sun, 05 Oct 2014 01:19:11 -0400 [thread overview]
Message-ID: <87ppe79jqo.fsf@gmail.com> (raw)
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.
next reply other threads:[~2014-10-05 5:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-05 5:19 jenia.ivlev [this message]
2014-10-05 18:56 ` Babel introduction example cannot be executed Thomas S. Dye
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=87ppe79jqo.fsf@gmail.com \
--to=jenia.ivlev@gmail.com \
--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).