From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hajage Subject: problem with babel and R Date: Tue, 17 Aug 2010 10:17:57 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0413050251==" Return-path: Received: from [140.186.70.92] (port=52234 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlHNE-0008Ri-38 for emacs-orgmode@gnu.org; Tue, 17 Aug 2010 04:18:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlHND-00048Q-2B for emacs-orgmode@gnu.org; Tue, 17 Aug 2010 04:18:19 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:48797) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlHNC-00047T-Ob for emacs-orgmode@gnu.org; Tue, 17 Aug 2010 04:18:19 -0400 Received: by fxm3 with SMTP id 3so3710622fxm.0 for ; Tue, 17 Aug 2010 01:18:17 -0700 (PDT) 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 --===============0413050251== Content-Type: multipart/alternative; boundary=001485f631e2596dd2048e009721 --001485f631e2596dd2048e009721 Content-Type: text/plain; charset=ISO-8859-1 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 --001485f631e2596dd2048e009721 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=A0

I am trying to use babel with R. Here the code= :

#+srcname: foo
#+begin_src= R :session *R* :results output org replace
=A0=A0library(ascii)
=A0=A0options(asciiType =3D &quo= t;org")
=A0=A0ascii(head(esoph))
#+end_src
<= font class=3D"Apple-style-span" face=3D"'courier new', monospace"><= br>
#+results: foo

>= ; | =A0 | agegp | alcgp =A0 =A0 | tobgp =A0 =A0| ncases | ncontrols |
|---+-------+-----------+----------+--------+-----------|
=
| 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 =A0 | 40.00 =A0 =A0 |=
| 2 | 25-34 | 0-39g/day | 10-19 =A0 =A0| 0.00 =A0 | 10.00 =A0 =A0 |
| 3 | 25-34 | 0-39g/day | 20-29 =A0 =A0| 0.00 =A0 | 6.00 =A0= =A0 =A0|
| 4 | 25-34 | 0-39g/day | 30+ =A0 =A0 =A0| 0.00 =A0 | 5.00 =A0 =A0 =A0= |
| 5 | 25-34 | 40-79 =A0 =A0 | 0-9g/day | 0.00 =A0 | 27.0= 0 =A0 =A0 |
| 6 | 25-34 | 40-79 =A0 =A0 | 10-19 =A0 =A0| 0.00 =A0 | 7.00 =A0 =A0 = =A0|

> | =A0 | agegp | alcgp =A0 =A0 | tobgp =A0 =A0| ncase= s | ncontrols |
|---+-------+-----------+----------+------= --+-----------|
| 1 | 25-34 | 0-39g/day | 0-9g/day | 0.00 =A0 | 40.00 =A0 =A0 |=
| 2 | 25-34 | 0-39g/day | 10-19 =A0 =A0| 0.00 =A0 | 10.00 =A0 = =A0 |
| 3 | 25-34 | 0-39g/day | 20-29 =A0 =A0| 0.00 =A0 | 6.00 =A0 =A0 =A0|<= /font>
| 4 | 25-34 | 0-39g/day | 30+ =A0 =A0 =A0| 0.00 =A0 | 5.00= =A0 =A0 =A0|
| 5 | 25-34 | 40-79 =A0 =A0 | 0-9g/day | 0.00 =A0 | 27.00 =A0 =A0 |
| 6 | 25-34 | 40-79 =A0 =A0 | 10-19 =A0 =A0| 0.00 =A0 | 7.00= =A0 =A0 =A0|

With org-mode=A07.01g in emacs 23, t= here is two problems:
=A0- an extra ">= ;" is added in the first line while output is "org"
=A0- when I run the code twice, the new results is append= ed, while I have the option "replace".

Is the= re any problem with my header?

Thank you very much for your help.
David
--001485f631e2596dd2048e009721-- --===============0413050251== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0413050251==--