Skip to content
Prev 309906 / 398502 Next

Problem compiling Rnw file

Let me clarify a little bit about me comments on SO: setwd() should be
called in the first place before you work on anything, and it should
never be used in the middle of a project (if you do, you need to
restore it later). Presumably Sweave writes the output file using
something like cat(output, file = 'yourfile.tex'); if you changed your
working directory before that, the tex file will be written to an
unexpected place.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Mon, Nov 5, 2012 at 10:58 AM, Jessica Streicher
<j.streicher at micromata.de> wrote: