Re: [R] Sweave-output causes error-message in pdflatex

2009-03-27 Thread Duncan Murdoch

On 3/27/2009 10:12 AM, Gerrit Voigt wrote:

Dear list,
Latex/Sweave has trouble processing Sveave-output coming from the 
summary-command of a linear Model.

 >summary(lmRub)
The output line causing the trouble looks in R like this
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

In my Sweaved Tex-file that line looks like this
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1’ (actually 
in the editor the quotation signs are replaced by bars, but they got 
lost through copy & paste. I don't know if that says anything about my 
problem.)


In the error message produced through pdflatex, the quotation signs 
reappear.

Latex error-message:
! Package inputenc Error: Keyboard character used is undefined

(inputenc) in inputencoding `Latin1'.

See the inputenc package documentation for explanation.

Type H  for immediate help.

...

l.465 ...*’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.


I hope anybody knows how I can prevent that error message. Thanks in 
advance.


You are running the code on a platform where the character used for one 
of the quote characters is unrecognized by LaTeX.  The simplest solution 
is to tell R not to use those characters, via executing


options(useFancyQuotes = FALSE)

early in your document.  See ?sQuote for more details.

Duncan Murdoch

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Sweave-output causes error-message in pdflatex

2009-03-27 Thread Gerrit Voigt

Dear list,
Latex/Sweave has trouble processing Sveave-output coming from the 
summary-command of a linear Model.

>summary(lmRub)
The output line causing the trouble looks in R like this
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

In my Sweaved Tex-file that line looks like this
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1’ (actually 
in the editor the quotation signs are replaced by bars, but they got 
lost through copy & paste. I don't know if that says anything about my 
problem.)


In the error message produced through pdflatex, the quotation signs 
reappear.

Latex error-message:
! Package inputenc Error: Keyboard character used is undefined

(inputenc) in inputencoding `Latin1'.

See the inputenc package documentation for explanation.

Type H  for immediate help.

...

l.465 ...*’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.


I hope anybody knows how I can prevent that error message. Thanks in 
advance.


Gerrit

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.