[R] Sweaving quotes

Marc Schwartz marc_schwartz at me.com
Thu Jul 29 04:34:48 CEST 2010


On Jul 28, 2010, at 7:43 PM, Murray Jorgensen wrote:

> The significance code line to summary() applied to an lm() fitted model object is
> 
> Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> 
> The corresponding line in the LaTeX source produced by Sweave is
> 
> Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> 
> which looks the same in my email (Thunderbird on a Vista machine), but when I look at the file in WinEdt the quotes appear rounded and cursive.
> 
> On LaTeXing and dvipsing the opening and closing quotes turn into S-acute and S-circumflex respectively.
> 
> Does anyone know how avoid this effect?
> 
> Cheers,  Murray


Murray,

Try this:

> summary(lm.D9)

...

Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

...


# Set to not use fancy quotes, but "TeX" style
# See ?options and ?sQuote
options(useFancyQuotes = "TeX")



> summary(lm.D9)

...

Signif. codes:  0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 

...


HTH,

Marc Schwartz



More information about the R-help mailing list