[texworks] Sweave support
S.J.Eglen at damtp.cam.ac.uk
Thu Oct 28 16:38:36 CEST 2010
Has anyone got support for Sweave files in texworks under Windows?
(Sweave is a way of combining R code within latex. See e.g.
for an example file. R code is included within chunks using
R code here
Together with the instructions on
we can get the Sweave document compiled into a .tex file. One problem
on windows however is that when 'estimate.Rnw' is loaded, texworks
called the file 'estimate.Rnw.tex'. This confuses latex and Sweave
(when the Sweave is generating figures, the figures have strange
extensions that latex does not like.)
Strangely though on linux, (ubuntu 10.10), loading estimate.Rnw into
texworks does not add the .tex suffix.
Best wishes, Stephen Eglen
Stephen Eglen, DAMTP, Centre for Mathematical Sciences
Wilberforce Road, Cambridge CB3 0WA, U.K.
Tel +44 (0)1223 765 761 S.J.Eglen at damtp.cam.ac.uk
Fax +44 (0)1223 760 419 http://www.damtp.cam.ac.uk/user/eglen
More information about the texworks