From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: capture htmlwidgets for export - a pattern in search of a new :results type??? Date: Tue, 28 Jul 2015 19:29:34 +0000 Message-ID: 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]:52661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKAZV-0008B7-8V for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 15:29:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKAZF-0003Ry-54 for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 15:29:53 -0400 Received: from smtp01.stowers.org ([40.141.174.61]:44752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKAZE-0003Rc-V1 for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 15:29:37 -0400 Received: from pps.filterd (smtp01.stowers.org [127.0.0.1]) by smtp01.stowers.org (8.15.0.59/8.15.0.59) with SMTP id t6SJRPX0013453 for ; Tue, 28 Jul 2015 14:29:35 -0500 Received: from mail.stowers.org (exchsrv3.sgc.loc [10.0.52.158]) by smtp01.stowers.org with ESMTP id 1vmn6u5r6h-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 28 Jul 2015 14:29:35 -0500 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: "emacs-orgmode@gnu.org" I have been playing with exporting htmlwidgets [1] generated in R code-bloc= ks. [1] http://www.htmlwidgets.org/ and Here is a worked example that exports to html #+BEGIN_SRC R :session *R* :exports both :results html=20 library(htmlwidgets) library(d3heatmap) widget<-d3heatmap(mtcars, scale=3D"column", colors=3D"Blues") saveWidget(widget,'d3heatmap_widget.html') print('') #+END_SRC #+RESULTS: #+BEGIN_HTML