]> git.lyx.org Git - features.git/commit
More elegant knitr support and bug fix
authorScott Kostyshak <skostysh@lyx.org>
Sun, 7 Oct 2012 01:01:34 +0000 (21:01 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 7 Oct 2012 01:01:34 +0000 (21:01 -0400)
commitf7928f48a6e5d92bd068c19f6b3d6f09d2c7012a
treedb8e7d62498c76fa0b160dcacf61df57de236919
parente55aa4359f1c31065ead0de542fa134ee6acb6f7
More elegant knitr support and bug fix

Implement a more simple and elegant integration of the R package knitr. Now,
lyxknitr.R does not need to move or copy files at all.

This also fixes a bug: when /tmp was on a different file system (e.g.
encrypted home), lyxknitr.R failed to move files to /tmp because it relied on
R's 'file.rename' function, which in turn relied on the rename function in
<stdio.h>, which was failing with the EXDEV errno.

Patch from Yihui Xie.
lib/examples/knitr.lyx
lib/layouts/knitr.module
lib/scripts/lyxknitr.R