On Mon, Oct 25, 2010 at 5:34 PM, Brian Diggs <diggsb@ohsu.edu> wrote:

> > local({..od <- getwd(); setwd("h:\\My Documents\\"); Sweave("h:\\My
> Documents\\test.Rnw"); setwd(..od) })
> Writing to file test.tex
> Processing code chunks ...
>  1 : echo term verbatim
>
> Error:  chunk 1
> Error : '\M' is an unrecognized escape in character string starting "h:\M"
>

The workaround of using "/" instead of "\\" would probably work.

({..od <- getwd(); setwd("h:/My Documents/"); Sweave("h:/My
Documents/test.Rnw"); setwd(..od) })

	[[alternative HTML version deleted]]

