yihui/lyx — Issue #7: lyx File -> Export -> R/S code not working on knitr-minimal.lyx
Author: MartinInFrankfurtAM
Created: 2012-02-28 16:36:17+00:00
State: open

Great work, Yihui!

When I try to export R/S code from knitr.minimal.lyx, I get:
xxxxx
xxxxx 945: output file: .../Knitr/knitr-minimal.tex
xxxxx.956:
xxxxx.958: [1] FALSE
xxxxx.963: Warning message:
xxxxx.968 In file.rename(basename(.cmdargs[2]), .cmdargs[2]) :
xxxxx:971: cannot rename file 'knitr-minimal.R' to 'tmp/lyx_tmpdir.MT4957/lyx_tmpbuf3/knitr-
minimal.R', reason 'Invalid cross-device link'
xxxxx.976: Successful export to format : R/S code

Any hints where I can look up such things?

Background:
I have only R2.12 in my office - for reasons of compatibility in a worldwide cluster.
My immediate barefoot workaround would be to export the R/S code from the final lyx-document (generated under 2.14 on my laptop) and then transfer it to the cluster and check whether it gives the same results under 2.12.
(Next week afternoon, I might try to migrate lyxknit.R and knitr to 2.12. - see how naive I am.)

Cheers,
Martin