emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: Torsten Wagner <torsten.wagner@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [babel] noweb does not work (as expected)
Date: Mon, 9 Nov 2009 06:32:17 -1000	[thread overview]
Message-ID: <2B2D9FBC-E90A-47EC-B4AA-9460A9E5CD40@tsdye.com> (raw)
In-Reply-To: <200911091638.17208.torsten.wagner@googlemail.com>


On Nov 8, 2009, at 9:38 PM, Torsten Wagner wrote:

> Hi Tom,
>
> If I try to use the noweb way, I always got error messages which  
> tells me that
> org-babel can not read the result correctly
>
>>
>> #+srcname: r-load-libraries
>> #+begin_src R
>>   library(RMySQL)
>>   library(reshape)
>>   library(xtable)
>> #+end_src
>
>
> As I see you do not use any special header here which means results  
> is set to
> value, right? However, there is no special return line to org-babel  
> either. In
> my understanding and according to my error messages  library(xtable)  
> would be
> evaluated as the result of this block...
>
> However this results in error messages at least for python.
>
> Which org-babel version due you use (which branch)?
>
> Maybe you or someone else can bring some more light into  
> this :results topic.
> I somehow miss the option :results none to avoid any results which  
> should be
> useful if the source code block is just a piece of a bigger  
> arrangement. For
> literate programming and RR it might be essential to spread blocks  
> over the
> file which will be tangled together (by tangle or a noweb block).  
> However not
> all need provide a result but just need to run in the same session.  
> Maybe just
> the last block of such an arrangement will come up with a result  
> suitable for
> org-babel.
>
> Actually I prefer the idea of :noweb instead of tangle, which seems  
> to me more
> flexible and faster.
>
> Just need to get it running
>
> Thanks
>
> Torsten

Hi Torsten,

It's not clear to me what outcome you desire.  Tangling should result  
in a source file that can serve as input to a compiler or  
interpreter.  The combination of :noweb and :session lets you write  
literate programs that are sent directly to an interpreter, which  
presumably creates some useful output along the way (my example makes  
some graphs after a lot of data reshaping), but might be used just to  
set up an environment in the interpreter, which then can be  
manipulated directly in the session buffer.

I presumed that your reference to makefile meant that you were heading  
for the :noweb, :session route.  I find this useful because I can  
query the state of variables in the session and put the results in a  
LaTeX source block. Of course, the same thing would be possible to  
insert the results into the org file.

I'm using the version of org-babel that comes with org-mode version  
6.32trans.  I think I last updated about a week ago.  I'm not  
competent to work at the bleeding edge.  Besides that, I find the org- 
babel distributed with org-mode to be mature for such a young piece of  
software, and it does pretty much everything I ask it to do.

HTH,
Tom

  reply	other threads:[~2009-11-09 16:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09  3:47 [babel] noweb does not work (as expected) Torsten Wagner
2009-11-09  4:33 ` Thomas S. Dye
2009-11-09  7:38   ` Torsten Wagner
2009-11-09 16:32     ` Thomas S. Dye [this message]
2009-11-10  1:40       ` Torsten Wagner
2009-11-09  4:41 ` Dan Davison
2009-11-09  7:16   ` Torsten Wagner
2009-11-09 16:04     ` Dan Davison
2009-11-10  1:51       ` Torsten Wagner
2009-11-10  5:33         ` Eric Schulte
2009-11-10  3:02 ` [babel] (solved) " Torsten Wagner

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=2B2D9FBC-E90A-47EC-B4AA-9460A9E5CD40@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=torsten.wagner@gmail.com \
    /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).