[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Error Embedding SQL Source from code block into R Source of Anot
From: |
Nick Dokos |
Subject: |
Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb) |
Date: |
Tue, 30 Sep 2014 15:15:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Eric Brown <address@hidden> 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 <<noweb>> 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 <- '
<<query>>
'
#+end_src
## ✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂
produces this
## ✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂✂
input <- '
select
*
from
table
where
x > 10
'
--8<---------------cut here---------------end--------------->8---
Nick
Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Charles Berry, 2014/09/30