[R] latex problem with Sweave output file under Debian

Dan Davison davison at uchicago.edu
Thu Feb 19 01:19:48 CET 2004


Could someone tell me how to end the trouble I'm encountering when
running latex on the .tex file produced by Sweave()? Sweave() seems to
process the example file
(http://www.ci.tuwien.ac.at/~leisch/Sweave/example-1.Snw) without
problems, and the file example-1.tex produced is the same as in the Sweave
manual. However, when I run latex on example-1.tex, many error messages
and requests for user input are generated (below). And when I view the
.dvi that eventually results with xdvi it is empty apart from a small
graphic containing the box plot that shouldbe there; there is no text.
latex produces apparently perfect .dvi files when the .tex files are 
not produced by Sweave.

Some of the error messages (log file pasted below) that result from the
command latex include: 

kpathsea: Running mktexmf  ecrm1000
! I can't find file `ecrm1000'.
! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file 
not found.
! LaTeX Error: File `ae.sty' not found. 
! LaTeX Error: File `fancyvrb.sty' not found. 
! LaTeX Error: Missing \begin{document}.

I downloaded the missing files and tried (I had no idea) putting them in
/usr/share/texmf/tex/latex/graphics/ and /usr/lib/R/share/texmf/ with no
apparent effect. I am using R Version 1.8.1 under Debian linux, with the
tetex Debian-stable package.

Thanks (and apologies if this is OT or if this is too much text),
Dan

Here is the contents of the example-1.log file, with some similar repeated
lines cut out:

This is TeX, Version 3.14159 (Web2C 7.4.5) (format=latex 2004.2.3)  18 FEB
2004 13:01
**example-1.tex
(./example-1.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, ngerman,
portuges,
 nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/lib/R/share/texmf/Sweave.sty
(/usr/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package
(/usr/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 38.
)
! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file
not fou
nd.
<to be read again> 
                   relax 
l.95 \fontencoding\encodingdefault\selectfont
                                             
? ^^[[2;5~
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? 
) (/usr/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV at toks@=\toks14
)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/share/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2001/08/31 v1.1 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: dvips.def on input line 80.

(/usr/share/texmf/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\Gin at req@height=\dimen103
\Gin at req@width=\dimen104
)

! LaTeX Error: File `ae.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 

! LaTeX Error: File `fancyvrb.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Undefined control sequence.
l.6 \DefineVerbatimEnvironment
                              {Sinput}{Verbatim}{fontshape=sl}
? 

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.6 \DefineVerbatimEnvironment{S
                                input}{Verbatim}{fontshape=sl}
? 
Missing character: There is no S in font nullfont!
{...similar lines...}


Missing character: There is no s in font nullfont!
Missing character: There is no l in font nullfont!
! Undefined control sequence.
l.7 \DefineVerbatimEnvironment
                              {Soutput}{Verbatim}{}
? 
Missing character: There is no S in font nullfont!
{...similar lines...}

Missing character: There is no i in font nullfont!
Missing character: There is no m in font nullfont!
! Undefined control sequence.
l.8 \DefineVerbatimEnvironment
                              {Scode}{Verbatim}{fontshape=sl}
? 
Missing character: There is no S in font nullfont!
{...many similar lines...}

Missing character: There is no l in font nullfont!
)
No file example-1.aux.
\openout1 = `example-1.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
Missing character: There is no 1 in font nullfont!
[1

]
! Font T1/cmr/m/n/17.28=ecrm1728 at 17.28pt not loadable: Metric
(TFM) file not
 found.
<to be read again> 
                   relax 
l.9 \maketitle
              
? 
Missing character: There is no S in font nullfont!

{...many similar lines...}

Missing character: There is no e in font nullfont!
Missing character: There is no 1 in font nullfont!
! Font T1/cmr/m/n/12=ecrm1200 at 12.0pt not loadable: Metric (TFM) file
not fou
nd.
<to be read again> 
                   relax 
l.9 \maketitle
              
? 
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 9.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 9.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 9.
Missing character: There is no F in font nullfont!

{...many similar lines...}

Missing character: There is no h in font nullfont!
Missing character: There is no e in font nullfont!
LaTeX Font Info:    Try loading font information for T1+cmtt on input line
12.
(/usr/share/texmf/tex/latex/base/t1cmtt.fd
File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
! Font T1/cmtt/m/n/10=ectt1000 at 10.0pt not loadable: Metric (TFM) file
not fo
und.
<to be read again> 
                   relax 
l.12 \texttt{kruskal.test}
                           help page into a \LaTeX{} document:
? 
Missing character: There is no k in font nullfont!

{...many similar lines...}

Missing character: There is no L in font nullfont!
Missing character: There is no T in font nullfont!
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 12.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 12.
! Font T1/cmr/m/n/7=ecrm0700 at 7.0pt not loadable: Metric (TFM) file not
found
.
<to be read again> 
                   relax 
l.12 \texttt{kruskal.test} help page into a \LaTeX
                                                  {} document:
? 
Missing character: There is no A in font nullfont!
{...many similar lines...}
Missing character: There is no : in font nullfont!

! LaTeX Error: Environment Sinput undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.15 \begin{Sinput}
                   
? 
Missing character: There is no > in font nullfont!
{...many similar lines...}
Missing character: There is no y in font nullfont!
Missing character: There is no ) in font nullfont!

! LaTeX Error: \begin{Schunk} on input line 14 ended by \end{Sinput}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.19 \end{Sinput}
                 
? 

! LaTeX Error: Environment Soutput undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.20 \begin{Soutput}
                    
? 
Missing character: There is no K in font nullfont!
Missing character: There is no r in font nullfont!

{...many similar lines...}

Missing character: There is no 0 in font nullfont!
Missing character: There is no 6 in font nullfont!

! LaTeX Error: \begin{Schunk} on input line 14 ended by \end{Soutput}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.25 \end{Soutput}
                  
? 
Missing character: There is no w in font nullfont!
Missing character: There is no h in font nullfont!

{...many similar lines...}

Missing character: There is no a in font nullfont!
Missing character: There is no : in font nullfont!
File: example-1-002.eps Graphic file (type eps)
<example-1-002.eps>
Missing character: There is no 2 in font nullfont!
 [2] (./example-1.aux) ) 
Here is how much of TeX's memory you used:
 783 strings out of 95848
 8517 string characters out of 1195973
 52319 words of memory out of 1000001
 3751 multiletter control sequences out of 10000+50000
 6376 words of font info for 23 fonts, out of 500000 for 1000
 16 hyphenation exceptions out of 1000
 32i,6n,21p,257b,222s stack positions out of
1500i,500n,5000p,200000b,5000s

Output written on example-1.dvi (2 pages, 324 bytes).




More information about the R-help mailing list