From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-babel R :results output changes with block level :session setting Date: Tue, 05 Jun 2012 08:45:56 -0600 Message-ID: <87d35d95qz.fsf@gmx.com> References: <629FA7F0-31B5-4150-83FD-AAAA7D4C66E9@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbv1T-0007nq-F1 for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 10:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sbv1J-0004fO-KI for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 10:46:15 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:33930) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Sbv1J-0004cT-DE for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 10:46:05 -0400 In-Reply-To: <629FA7F0-31B5-4150-83FD-AAAA7D4C66E9@gmail.com> (Greg Tucker-Kellogg's message of "Sat, 2 Jun 2012 09:11:22 +0800") 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: Greg Tucker-Kellogg Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Greg Tucker-Kellogg writes: > I'm trying to use org-mode to reproduce the HTML slide show made with > knitr demonstrated at http://goo.gl/bOJJo . The following single code > block works > > #+BEGIN_SRC R :results output html > library(googleVis) > G <- gvisGeoChart(Exports, "Country", "Profit", options = list(width = 250, > height = 120)) > print(G) > #+END_SRC > > and wraps it in the needed HTML block, but if I set :session on the > block the "R>" prompt is included in the output. If i set a file level > session property it works fine, but if on a single block inserts the > prompt. I was expecting these would behave identically. > > Is this the expected behavior? > > Greg > Hi Greg, This is not expected behavior, and in fact I do not see this behavior on my system. I get the attached (below) results when running your code block in a session. Is it possible that you have customized your R session prompt? If so you may need to customize the R prompt regexp in ob-R.el. Currently this is a literal value on line 353, but if it would be useful to customize this value I will make it a defcustom so that you can customize it from your .emacs. Best, --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=gvis.org #+BEGIN_SRC R :results output html :session library(googleVis) G <- gvisGeoChart(Exports, "Country", "Profit", options = list(width = 250, height = 120)) print(G) #+END_SRC #+RESULTS: #+BEGIN_HTML GeoChartID425d7603333b
Data: Exports • Chart ID: GeoChartID425d7603333b
R version 2.15.0 (2012-03-30) • googleVis-0.2.16Google Terms of UseData Policy
#+END_HTML --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--