From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Re: org-babel-R export parameters Date: Mon, 7 Jun 2010 15:21:21 -0500 Message-ID: <20100607202121.GH13859@thinkpad.adamsinfoserv.com> References: <20100606225802.GC13859@thinkpad.adamsinfoserv.com> <87k4qbyc5p.fsf@stats.ox.ac.uk> <20100607080434.GD13859@thinkpad.adamsinfoserv.com> <871vcjp631.fsf@stats.ox.ac.uk> <20100607103100.GE13859@thinkpad.adamsinfoserv.com> <4C0D3D20.7020304@ccbr.umn.edu> <20100607185119.GG13859@thinkpad.adamsinfoserv.com> <87eigilj9w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33976 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLipA-0007uH-Qc for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 16:21:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLip8-0000ps-61 for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 16:21:32 -0400 Received: from squirtle.drak.net ([72.52.144.201]:60283) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLip8-0000pd-1y for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 16:21:30 -0400 Received: from 206.180.155.43.adsl.hal-pc.org ([206.180.155.43] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1OLioy-0000lk-52 for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 15:21:20 -0500 Content-Disposition: inline In-Reply-To: <87eigilj9w.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Mon, Jun 07, 2010 at 12:44:43PM -0700, Eric Schulte wrote: > The png is still included your output because the link to the png is > part of your org-mode buffer. That explains it. So here's the fix, add # at the beginning of the line with the inline image. ====================================================================== * HEading blah blah blah blah blah blah blah blah blah blah blah blah blah #+BEGIN_SRC R :results raw :exports none :var basename="MyFile" # Data from org doublePlot = function (base, plotFunc) { # basename from org-babel myPng = paste(base,"png",sep=".") myPdf = paste(base,"pdf",sep=".") png(myPng, width = 1024, height = 500) plotFunc() dev.off() pdf(myPdf, paper = 'usr') plotFunc() dev.off() print(paste("# [[file:",myPng,"]]",sep="")) } a = c(1,2,3,4) doublePlot(base=basename, plotFunc=function(){ plot(a) }) #+END_SRC #+results: # [[file:MyFile.png]] #+LATEX: \includegraphics[width=\textwidth]{MyFile.pdf} ====================================================================== ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3