From: David Hajage <dhajage@gmail.com>
To: emacs-orgmode@gnu.org
Subject: problem with babel and R
Date: Tue, 17 Aug 2010 10:17:57 +0200 [thread overview]
Message-ID: <AANLkTim7jqrWosr14CaqC9a8EVTEJCBnnCsgfDj2Wo2R@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1450 bytes --]
Hello,
I am trying to use babel with R. Here the code:
#+srcname: foo
#+begin_src R :session *R* :results output org replace
library(ascii)
options(asciiType = "org")
ascii(head(esoph))
#+end_src
#+results: foo
> | | agegp | alcgp | tobgp | ncases | ncontrols |
|---+-------+-----------+----------+--------+-----------|
| 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 | 40.00 |
| 2 | 25-34 | 0-39g/day | 10-19 | 0.00 | 10.00 |
| 3 | 25-34 | 0-39g/day | 20-29 | 0.00 | 6.00 |
| 4 | 25-34 | 0-39g/day | 30+ | 0.00 | 5.00 |
| 5 | 25-34 | 40-79 | 0-9g/day | 0.00 | 27.00 |
| 6 | 25-34 | 40-79 | 10-19 | 0.00 | 7.00 |
> | | agegp | alcgp | tobgp | ncases | ncontrols |
|---+-------+-----------+----------+--------+-----------|
| 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 | 40.00 |
| 2 | 25-34 | 0-39g/day | 10-19 | 0.00 | 10.00 |
| 3 | 25-34 | 0-39g/day | 20-29 | 0.00 | 6.00 |
| 4 | 25-34 | 0-39g/day | 30+ | 0.00 | 5.00 |
| 5 | 25-34 | 40-79 | 0-9g/day | 0.00 | 27.00 |
| 6 | 25-34 | 40-79 | 10-19 | 0.00 | 7.00 |
With org-mode 7.01g in emacs 23, there is two problems:
- an extra ">" is added in the first line while output is "org"
- when I run the code twice, the new results is appended, while I have the
option "replace".
Is there any problem with my header?
Thank you very much for your help.
David
[-- Attachment #1.2: Type: text/html, Size: 4772 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2010-08-17 8:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-17 8:17 David Hajage [this message]
2010-08-17 12:01 ` problem with babel and R David Hajage
2010-08-17 13:57 ` Eric Schulte
2010-08-17 14:41 ` David Hajage
2010-08-17 15:15 ` Eric Schulte
2010-08-17 17:07 ` Tom Short
[not found] ` <1668ca$1pq4c@mail.curie.net>
2010-08-18 6:53 ` David Hajage
2010-08-18 22:13 ` Eric Schulte
2010-08-26 16:10 ` Eric Schulte
2010-08-26 20:20 ` David Hajage
2010-08-26 21:51 ` David Hajage
2010-08-26 22:06 ` David Hajage
2010-08-26 23:37 ` Eric Schulte
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=AANLkTim7jqrWosr14CaqC9a8EVTEJCBnnCsgfDj2Wo2R@mail.gmail.com \
--to=dhajage@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).