From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: capture htmlwidgets for export - a pattern in search of a new :results type??? Date: Wed, 29 Jul 2015 00:08:44 +0000 Message-ID: <9f3c40e52cdd4e2aa752f01d7733812a@exchsrv2.sgc.loc> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEvV-0007SM-DW for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 20:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKEvQ-0004GV-ED for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 20:08:53 -0400 Received: from smtp02.stowers.org ([40.141.174.62]:40508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEvQ-0004E9-8F for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 20:08:48 -0400 In-Reply-To: Content-Language: en-US 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: "'Charles C. Berry'" Cc: "emacs-orgmode@gnu.org" > On Tue, 28 Jul 2015, Cook, Malcolm wrote: >=20 > > I have been playing with exporting htmlwidgets [1] generated in R code- > blocks. > > >=20 > [snip: proposal for new :results format to accomodate repetitive codes] >=20 >=20 > > > > 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? >=20 > See >=20 > (info "(org) Noweb reference syntax") >=20 > for one way to handle repetitive codes. >=20 > Alternately, header args :var, :post, :prologue and/or :epilogue could be= used > to crystallize your code. Excellent! Glad to be directed to these. The combination of all of them g= ets me over the fence: #+name: iframe #+begin_src sh :var it=3D"" :var height=3D"700px" :var width=3D"700px" :res= ults output :exports none printf "