Hi Scott, Attached is my patch. Now lyxknitr.R does not move files at all; all old tricks are gone, and the R script is much cleaner. I have tested it under Ubuntu.
I'm not sure you can commit it to the git repository, so I cc JMarc. BTW, I also updated the homepage of the knitr package from yihui.github.com/knitr to yihui.name/knitr Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Sep 27, 2012 at 6:18 AM, Scott Kostyshak <skost...@lyx.org> wrote: > 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. Now lyxknitr.R relies > on 'file.copy'. > > Yihui, does this look OK? > > Note that I also changed a comment: file.rename renamed a .tex and a .R for > me. > > Thanks, > > Scott
lyxknitr.diff
Description: Binary data