From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: [babel] :noweb and R Date: Mon, 19 Oct 2009 16:24:03 -1000 Message-ID: <8EFAEA79-F8A8-47AB-AF72-BE504A455527@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0346668497==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N04OR-0005g3-Vc for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 22:24:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N04ON-0005dz-Oz for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 22:24:11 -0400 Received: from [199.232.76.173] (port=52108 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N04ON-0005dr-Ln for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 22:24:07 -0400 Received: from outbound-mail-108.bluehost.com ([69.89.22.8]:55704) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N04ON-0004hv-5v for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 22:24:07 -0400 Received: from [72.253.173.33] (helo=[192.168.1.44]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1N04OK-0004wS-Mu for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 20:24:05 -0600 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 --===============0346668497== Content-Type: multipart/alternative; boundary=Apple-Mail-114-672853117 --Apple-Mail-114-672853117 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Eric, The :noweb argument works for me with python, but not with R. This works fine: > #+srcname: noweb-example > #+begin_src python > a = 28 > a > #+end_src > > #+resname: noweb-example > : 28 > > > #+begin_src python :noweb > # <> > a + 4 > #+end_src > > #+resname: > : 32 This throws an error in the 2nd block "funcall: Symbol's function definition is void: R-mode": > #+srcname: noweb-example > #+begin_src R > a <- 28 > a > #+end_src > > #+resname: noweb-example > : 28 > > > > #+begin_src R :noweb > # <> > b <- a + 4 > b > #+end_src The first block works fine for R. Tom Thomas S. Dye, Ph.D. T. S. Dye & Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com --Apple-Mail-114-672853117 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Eric,

The = :noweb argument works for me with python, but not with = R.

This works = fine:

#+srcname: = noweb-example
#+begin_src python
 a =3D = 28
 a
#+end_src

#+resname: = noweb-example
: 28


#+begin_src python :noweb
 # = <<noweb-example>>
 a + = 4
#+end_src

#+resname:
: = 32

This throws an error in the 2nd block "funcall: = Symbol's function definition is void: R-mode":

#+srcname: noweb-example
#+begin_src = R
 a <- = 28
 a
#+end_src

#+resnam= e: noweb-example
: = 28



#+begin_src R = :noweb
 # <<noweb-example>>
 b = <- a + = 4
 b
#+end_src

<= /font>
The = first block works fine for R.

Tom


Thomas S. Dye, Ph.D.

T. S. Dye & Colleagues, = Archaeologists, Inc.

Phone: (808) 529-0866 Fax: (808) 529-0884

=

= --Apple-Mail-114-672853117-- --===============0346668497== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0346668497==--