From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Guidance for preparing document with code Date: Wed, 29 May 2013 12:13:16 -0400 Message-ID: <8738t5lq77.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhj0H-0000PY-IO for emacs-orgmode@gnu.org; Wed, 29 May 2013 12:13:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhj0F-0001IG-AZ for emacs-orgmode@gnu.org; Wed, 29 May 2013 12:13:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:39562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhj0F-0001IA-3d for emacs-orgmode@gnu.org; Wed, 29 May 2013 12:13:31 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uhj0E-0006B7-1d for emacs-orgmode@gnu.org; Wed, 29 May 2013 18:13:30 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 May 2013 18:13:30 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 May 2013 18:13:30 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org SabreWolfy 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