emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Guidance for preparing document with code


From: Nick Dokos
Subject: Re: [O] Guidance for preparing document with code
Date: Wed, 29 May 2013 12:13:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

SabreWolfy <address@hidden> writes:

> I'm using Org ~7.8 and would like to prepare a document for export to HTML
> to make available to others to read. This document will contain heading,
> text, etc., R code (for my reference) and the output of the R code. Where
> should I look to learn how to do this in R? Org-babel? Is this literate
> programming? I've read much about Org over the years, and I think I've
> probably tried this already once before, but I'd like to know where to start
> looking.
>

org-babel is the right tool. Getting the headers right might involve
some fiddling: there have been many question on the ML about those so
you can try searching, but if after some effort you are still running
into a wall, just post what you have, what you want to accomplish and
how your purported solution fails: there are lots of people able and
willing to help. The only thing to keep in mind is that the shorter the
example, the better: don't post your 100-page org file; extract the
example(s) that you want help with.

These are all "obvious" but I find that repetition of this sort (although
it might irk the lifers on the list) is useful.

If you are using the R code for your reference, and only presenting the
results, that's *not* literate programming: you don't have to worry
about the noweb stuff.

-- 
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]