From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Guidance for preparing document with code Date: Wed, 29 May 2013 06:06:29 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhj42-0002hD-BA for emacs-orgmode@gnu.org; Wed, 29 May 2013 12:17:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhj40-0002ML-UY for emacs-orgmode@gnu.org; Wed, 29 May 2013 12:17:26 -0400 Received: from oproxy14-pub.unifiedlayer.com ([67.222.51.224]:47736) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Uhj40-0002M3-LL for emacs-orgmode@gnu.org; Wed, 29 May 2013 12:17:24 -0400 In-Reply-To: (sabrewolfy@gmail.com's message of "Wed, 29 May 2013 15:33:51 +0000 (UTC)") 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: SabreWolfy Cc: emacs-orgmode@gnu.org Aloha SabreWolfy, 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? Org mode should do what you want pretty much out of the box. Note that the exporters all changed with Org 8, so you'll want to distinguish between the old and new exporters if you look for information on line. > Is this literate > programming? I don't think so. The end result of literate programming is typically a computer program rather than a document. > 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. For your R code blocks, see the :exports header argument. It sounds like you'll want to set that to :exports both so you can see both your R code and its output in the html document. Good luck! hth, Tom -- Thomas S. Dye http://www.tsdye.com