From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: capture htmlwidgets for export - a pattern in search of a new :results type??? Date: Tue, 28 Jul 2015 14:34:03 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKCVn-00070X-0I for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 17:34:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKCVi-0003AZ-1r for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 17:34:10 -0400 Received: from iport-acv6-out.ucsd.edu ([132.239.0.13]:49498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKCVh-0003A8-P6 for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 17:34:05 -0400 In-Reply-To: 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: "Cook, Malcolm" Cc: "emacs-orgmode@gnu.org" On Tue, 28 Jul 2015, Cook, Malcolm wrote: > I have been playing with exporting htmlwidgets [1] generated in R code-blocks. > [snip: proposal for new :results format to accomodate repetitive codes] > > Perhaps there is a better or more useful abstraction. > > Or a better workaround than simply following the pattern when needed (which is not too hard anyway). > > Any ideas along these lines? See (info "(org) Noweb reference syntax") for one way to handle repetitive codes. Alternately, header args :var, :post, :prologue and/or :epilogue could be used to crystallize your code. One other alternative is to write an R function that creates the extra markup. HTH, Chuck