From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Selective export of Babel code blocks Date: Mon, 18 Jun 2012 19:08:06 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgfRG-0007lw-TC for emacs-orgmode@gnu.org; Mon, 18 Jun 2012 13:08:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgfRF-0003cU-3x for emacs-orgmode@gnu.org; Mon, 18 Jun 2012 13:08:30 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:35205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgfRE-0003c5-T0 for emacs-orgmode@gnu.org; Mon, 18 Jun 2012 13:08:29 -0400 Received: by obbtb8 with SMTP id tb8so2903284obb.0 for ; Mon, 18 Jun 2012 10:08:27 -0700 (PDT) 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: John Hendy Cc: emacs-orgmode Hi John, My R knowledge is zero, but I'll give it a shot. On Mon, Jun 18, 2012 at 6:50 PM, John Hendy wrote: > #+name: preamble > #+begin_src R :exports none > tikzDevice("file-name") > #+end_src > Are you trying to use "file-name" as a variable? if so I think the source block header should include this: ":var file-name" and the source block can refer to the variable as $file-name. > And by the org-mode Babel documentation it looks like I can do > something like: > > <> I'm not sure about this. The syntax seems correct but I don't quite understand the following statement from the manual: It is possible to include the _results_ of a code block rather than the body. This is done by appending parenthesis to the code block name which may optionally contain arguments to the code block as shown below. <> My lack of knowledge of R doesn't help either. A little experimentation should resolve it I think. :) HTH -- Suvayu Open source is the future. It sets us free.