So, despite my best efforts to get sweave working in RStudio, I cannot do it for the life of me. Trawling the webs, and even trying the answer to this question haven't helped.
OK. I'm trying to compile chapters of my supervisors book, but every time I hit Compile PDF, it bombs out with this error:
grDevices::pdf.options(useDingbats = FALSE); utils::Sweave('test.Rnw', encoding='ASCII') Writing to file test.tex Processing code chunks ... Error in RweaveLatexOptions(options) : invalid value for 'encoding' : ASCII Calls: -> -> RweaveLatexOptions Execution halted
Removing all the code, even pasting in the answer to the above-linked question have not helped. Whilst I have no doubt that it is a simple solution, I cannot find it. This is a fresh and clean install of RStudio - R and TexNic Centre both work fine.