[R] Sweave and size10.clo

Tom Schenk Jr. tomschenkjr at gmail.com
Mon May 7 06:05:35 CEST 2007


Duncan-

Thanks for getting back and trying the code on your machine, I appreciate
that. I'm not suspicious of \usepackage because inserting a type-o in the
command will give me a specific error on not finding Sweave.sty. I did try
backslashes, but that gave an error on not finding Sweave.sty.


--
Tom Schenk Jr.

-----Original Message-----
From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca] 
Sent: Sunday, May 06, 2007 6:24 AM
To: Tom Schenk Jr.
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Sweave and size10.clo

On 06/05/2007 2:23 AM, Tom Schenk Jr. wrote:
> Using Sweave on Windows (MikTeX 2.5 and R 2.4.1), I've ran into a bit 
> of a problem with the tex -> DVI process.
> 
> First, I've corrected the common \usepackage error by using 
> \usepackage{"C:/Program Files/R/R-2.4.1/share/texmf/Sweave"} to get 
> around the spacing problem. That is, LaTeX is finding the Sweave.sty, 
> which has been a common problem in past postings here.
> 
> However, my problem comes with running the latex command. The output 
> is shown below:
> 
> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) entering 
> extended mode (test.tex LaTeX2e <2005/12/01> Babel <v3.8g> and 
> hyphenation patterns for english, dumylang, nohyphenation, ge rman, 
> ngerman, french, loaded.
> ("C:\Program Files\MiKTeX 2.5\tex\latex\base\article.cls"
> Document Class: article 2005/09/16 v1.4f Standard LaTeX document class 
> ("C:\Program Files\MiKTeX 2.5\tex\latex\base\size10.clo"))latex: 
> Windows API err or 123: The filename, directory name, or volume label 
> syntax is incorrect.
> 
> The problem seems to be the size10.clo file and is only a problem for 
> me with the use of Sweave.sty. Any ideas?

Are you sure that's the problem?  You have two closing parens after that
file is listed; I think that succeeded, and the error happened afterwards.

I'd be suspicious of the Sweave \usepackage line.  Perhaps MiKTeX now
requires backslashes instead of forward slashes, or maybe the quotes are 
causing problems.   (Your \usepackage line worked fine here, but I'm 
using MikTeX 2.4.  MikTeX has a habit of making incompatible changes.)

Duncan Murdoch



More information about the R-help mailing list