emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Detlef Steuer <detlef.steuer@gmx.de>
To: emacs-orgmode@gnu.org
Subject: [babel] don't get the :result  option
Date: Wed, 11 Nov 2009 14:12:49 +0100	[thread overview]
Message-ID: <20091111141249.446c2dfc@gaia> (raw)

Hi!

Making my first steps with org babel I'm running into this:

* R in org-mode
  May very well be the ultimate tool!

#+srcname: R-first :results output
#+begin_src R 
x <- runif(100)
y <- x + rnorm(100)
summary(lm(y ~x))
#+end_src

And I get "Source block produces no output" if I do C-c C-c.
Nevertheless: in R summary() produces output.

On the other hand:

#+srcname: R-second :results output
#+begin_src R 
x <- runif(10)
#+end_src

results in
#+resname: R-second
|  0.478928654454648 |
|  0.635543955955654 |
|   0.59639022895135 |
|  0.152170182904229 |
|  0.438571813516319 |
|  0.116913777310401 |
|   0.69362498424016 |
|  0.629256698768586 |
|  0.513565683504567 |
| 0.0796801506076008 |

Nevertheless that R command produces no output.

I guess I'm doing wrongly something very simple.
Can anybody help?

This is with R-2.10.0 and org-mode freshly compiled this morning from git, emacs 22.

Detlef
 

             reply	other threads:[~2009-11-11 13:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11 13:12 Detlef Steuer [this message]
2009-11-11 17:06 ` [babel] don't get the :result option Dan Davison

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=20091111141249.446c2dfc@gaia \
    --to=detlef.steuer@gmx.de \
    --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).