[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: |
Eric Brown |
Subject: |
Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb) |
Date: |
Tue, 30 Sep 2014 12:02:16 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) |
Charles Berry <address@hidden> writes:
> Hmmm. Maybe the bug that was fixed by commit
>
> 0fd29a5ee7d14c3695b22998196373b9a3637413
>
> about two weeks back? Make sure ob-R.el is up to date and compiled (or
> that ob-R.elc is deleted).
>
>
> Anyway, your code works as expected for me - first time.
>
> ---
>
> FWIW, I prefer to use :var headers to import strings, but it takes some
> setup:
>
>
>
> #+BEGIN_SRC emacs-lisp
> (defun grab-src (name)
> (save-excursion
> (org-babel-goto-named-src-block name)
> (nth 1 (org-babel-get-src-block-info 'light))))
> #+END_SRC
>
> #+BEGIN_SRC R :var y=(grab-src "sqlsource") :results output :exports both
> y
> #+END_SRC
>
> #+RESULTS:
> : [1] "select \n * \nfrom \n t \nlimit \n 10"
>
In fact M-x R before evaluation did fix things. I will try to get the
org source going, which contains the fix. Otherwise, I might be content
to wait for the fix to make its way into org ELPA. (I'm on .emacs
complexity overload)
Great idea about the grab-src function! Worked like a charm.
Thanks again,
Eric
- [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Eric Brown, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Rainer M Krug, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Grant Rettke, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Eric Brown, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Grant Rettke, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Nick Dokos, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Grant Rettke, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Nick Dokos, 2014/09/30
Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb), Charles Berry, 2014/09/30
- Re: [O] Error Embedding SQL Source from code block into R Source of Another (noweb),
Eric Brown <=