[R] Sweave files generating miktex errors

Duncan Murdoch murdoch.duncan at gmail.com
Wed Jan 30 15:19:32 CET 2013

On 13-01-30 8:52 AM, Michael Friendly wrote:
> On 1/29/2013 6:04 PM, Troy S wrote:
>> Ok, yes I realize it.  So let me try to fix it:
>> I removed the sty files, and set TEXINPUTS to
>> 'C:\R\R-2.15.2\share\texmf\tex\latex
>> I am back where I started: the tex file will not process.
>> Please let me know what I should do to fix the issue.
>> Troy
> Don't do that either.
> Go to Programs ->Miktex -> Maintenance (Admin) -> Settings
> and on the Roots tab, add a folder, e.g., c:\localtexmf
> having the same structure as the default texmf tree.
> E.g., I have there \tex\latex\..., \bibtex\{bib,bst} ...
> where I put all things tex that aren't installed directly
> by Miktex

I think this is better than making copies of Sweave.sty in every project 
in that it's only one place that needs fixing when you upgrade R, but 
why not make use of the facilities in R to handle this?

Duncan Murdoch

More information about the R-help mailing list