emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: emacs-orgmode@gnu.org
Subject: [babel] :noweb and R
Date: Mon, 19 Oct 2009 16:24:03 -1000	[thread overview]
Message-ID: <8EFAEA79-F8A8-47AB-AF72-BE504A455527@tsdye.com> (raw)


[-- 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

             reply	other threads:[~2009-10-20  2:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-20  2:24 Thomas S. Dye [this message]
2009-10-20  2:38 ` [babel] :noweb and R 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=8EFAEA79-F8A8-47AB-AF72-BE504A455527@tsdye.com \
    --to=tsd@tsdye.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).