emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] :noweb and R
@ 2009-10-20  2:24 Thomas S. Dye
  2009-10-20  2:38 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas S. Dye @ 2009-10-20  2:24 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 762 bytes --]

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
>  # <<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
>
> #+resname: noweb-example
> : 28
>
>
>
> #+begin_src R :noweb
>  # <<noweb-example>>
>  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



[-- Attachment #1.2: Type: text/html, Size: 5017 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [babel] :noweb and R
  2009-10-20  2:24 [babel] :noweb and R Thomas S. Dye
@ 2009-10-20  2:38 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2009-10-20  2:38 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode

"Thomas S. Dye" <tsd@tsdye.com> writes:

> Hi Eric,
>
> The :noweb argument works for me with python, but not with R.

[...]

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

Hi Tom,

The problem here is that `R-mode' is not available on your system,
installing ESS [1] should fix this problem.

Best -- Eric

Footnotes: 
[1]  http://ess.r-project.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-20  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-20  2:24 [babel] :noweb and R Thomas S. Dye
2009-10-20  2:38 ` Eric Schulte

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).