From ripley at stats.ox.ac.uk  Mon Jan 24 12:45:08 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon Jan 24 12:45:14 2005
Subject: [Rd] * creating vignettes ... ERROR
In-Reply-To: <41F4C169.2020806@curie.fr>
References: <41F12ED5.2040709@curie.fr>
	<20050121190150.042eb333.Achim.Zeileis@wu-wien.ac.at>
	<41F14DEA.1030307@statistik.uni-dortmund.de>
	<20050121201551.64d0a0fd.Achim.Zeileis@wu-wien.ac.at>
	<41F4C169.2020806@curie.fr>
Message-ID: <Pine.LNX.4.61.0501241133250.16997@gannet.stats>

Is the error here perchance

/tmp/svmdoc.tex:87: LaTeX Error: File `svm' not found?

in svmdoc.log?  If so, the problem is in graphics inclusion paths.

On my system both pdflatex and pdfelatex work, but you do have to be 
careful with etex paths.


On Mon, 24 Jan 2005, [UTF-8] Philippe Hup? wrote:

> Achim Zeileis a ?crit :
>
>> Philippe,
>> 
>> I just talked to Uwe to properly understand the problem. Is it correct
>> that the vignette gets correctly compiled to a pdf and that only the R
>> CMD build script claims that there has been an error and then
>> terminates?
>> 
>> Could you please try the following: go into the inst/doc directory of
>> your e1071 copy and try there
>>  R> Sweave("svmdoc.Rnw")
>>  R> texi2dvi("svmdoc.tex", pdf = TRUE)
>> Does that work properly?
>> 
> Thanks all of you for your answer.
>
>
> running Sweave and texi2dvi directly in R leads to the same error:
>
> ALGARVE> Sweave("svmdoc.Rnw")
> Writing to file svmdoc.tex
> Processing code chunks ...
> 1 : echo term verbatim
> 2 : echo term verbatim
> 3 : echo term verbatim
> 4 : echo term verbatim
> 5 : term tex
> 6 : echo term verbatim
> 7 : term tex
>
> You can now run LaTeX on svmdoc.tex
> ALGARVE> texi2dvi("svmdoc.tex", pdf = TRUE)
> /usr/lib/R/bin/texi2dvi: pdflatex exited with bad status, quitting.
> /usr/lib/R/bin/texi2dvi: see svmdoc.log for errors.
> Error in texi2dvi("svmdoc.tex", pdf = TRUE) :
> running texi2dvi on svmdoc.tex failed
> ALGARVE>
>
>
> The tex file is well generated. Running latex on this file (Sweave.sty is in 
> my latex path) build the dvi file correctly.

Well, it should not as svm.pdf is not a valid graphics files for 
.dvi.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

[Rd] * creating vignettes ... ERROR
Prof Brian Ripley