From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Error Embedding SQL Source from code block into R Source of Another (noweb) Date: Tue, 30 Sep 2014 15:15:25 -0400 Message-ID: <8738b8j4xe.fsf@alphaville.bos.redhat.com> References: <87lhp2x7p9.fsf@air.ben-zion.org> <87mw9hqiv1.fsf@air.ben-zion.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ2tr-0004ZD-LJ for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 15:15:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZ2tj-0004jW-BU for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 15:15:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:56967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ2tj-0004jK-5V for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 15:15:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XZ2th-0005ZA-RH for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 21:15:41 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Sep 2014 21:15:41 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Sep 2014 21:15:41 +0200 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 Eric Brown writes: > 2) Grant, I tried your code, but there seem to be some missing headers. > Do you have a complete minimal example that exhibits the behavior that > you have demonstrated? Add :noweb yes. Also Grant seems to have gone non-standard and replaced the <> markup with guillemots. Using the default markers, it should read: --8<---------------cut here---------------start------------->8--- #+name: query #+begin_src sql select * from table where x > 10 #+end_src #+begin_src R :noweb yes :tangle output.R input <- ' <> ' #+end_src ## ✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂ produces this ## ✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂ input <- ' select * from table where x > 10 ' --8<---------------cut here---------------end--------------->8--- Nick