From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: Aaron Ecay <aaronecay@gmail.com>,
Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: "user-error: No language for src block: (unnamed)" when running `org-icalendar-combine-agenda-files`
Date: Fri, 21 Aug 2015 20:19:30 -0700 [thread overview]
Message-ID: <alpine.OSX.2.11.1508211919570.1554@charles-berrys-macbook.local> (raw)
In-Reply-To: <olufv3c4cnn.fsf@med.uni-goettingen.de>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2205 bytes --]
On Fri, 21 Aug 2015, Andreas Leha wrote:
> Hi,
>
> Just a small comment.
>
> [ ... discussion of :caching of evaluation results ... ]
>
>> For purely R-based work, Charles Berry’s ox-ravel package
>> <https://github.com/chasberry/orgmode-accessories/blob/master/ox-ravel.org>
>> is a very interesting approach, since it relies on the cache feature of
>> knitr, which is capable of automatically detecting cross-block
>> dependencies like the example above under some circumstances
>> <http://yihui.name/knitr/demo/cache/>. It would be interesting to see
>> if that approach could be used to override :cache handling for ob-R,
>> while falling back on org-babel’s less intelligent features for other
>> languages (or in R environments that don’t have knitr available).
>
> That would be just awesome!
I think I understand what Aaron is suggesting, but...
In ox-ravel exports, non-R src blocks get executed as usual, while R
blocks get converted to `chunks' for later processing by knitr or Sweave
or whatever. Anything that needs to be communicated from other languages
to R via noweb `<<run-this()>>' or `:var rvar=elisp-block()' headers
should work. That is, the resulting chunks will have code put into them
as usual in R src block execution. (And this is useful for passing latex
code to R, for example.)
But when the R code is run under knitr or some other engine outside of org
mode, it cannot communicate values back to src blocks using other
languages. Or even other R src blocks using `:var rvar=r-src-block()',
say. And it cannot use `:post' header args. I agree it would be
interesting to adapt knitr or some other dependency-aware caching engine
to run under babel control to allow R to push results to other src blocks.
I don't know how hard it would be to make it work well.
Chuck
p.s. I just pushed an org mode translation of auto-dependson.Rnw from
https://github.com/yihui/knitr-examples to the ravel-lang branch at
https://github.com/chasberry/orgmode-accessories/blob/ravel-lang/autodep.org
It illustrates automatic dependency-aware caching of R src blocks.
p.p.s. I expect to move the `ravel-lang' branch to `master' soon, so I
encourage users to try that branch.
next prev parent reply other threads:[~2015-08-22 3:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 9:38 "user-error: No language for src block: (unnamed)" when running `org-icalendar-combine-agenda-files` JI, Xiang
2015-08-20 9:44 ` JI, Xiang
2015-08-21 11:50 ` Nicolas Goaziou
2015-08-21 13:46 ` Ista Zahn
2015-08-21 14:20 ` Nicolas Goaziou
2015-08-21 14:35 ` Ista Zahn
2015-08-21 14:43 ` Andreas Leha
2015-08-21 14:52 ` Ista Zahn
2015-08-21 15:04 ` Nicolas Goaziou
2015-08-21 15:57 ` Ista Zahn
2015-08-21 20:13 ` Aaron Ecay
2015-08-21 20:19 ` Andreas Leha
2015-08-22 3:19 ` Charles C. Berry [this message]
2015-08-21 20:19 ` Charles C. Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.11.1508211919570.1554@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=aaronecay@gmail.com \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).