[R] Sweave: font problems with Signif. codes lines

Michael Friendly friendly at yorku.ca
Tue Dec 22 22:05:39 CET 2009


[Environment: Win Xp, Miktex 2.7, R 2.9.2]

In an Sweave document, I'm displaying the results of car:::Anova() 
tests, that look like this in the
generated .tex file:

\begin{Soutput}
Type III MANOVA Tests: Pillai test statistic
Df test stat approx F num Df den Df Pr(>F)
(Intercept) 1 0.86 90.38 4 60 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
\end{Soutput}

When processed with pdfLaTeX, using
\usepackage{Sweave}
the Signif. codes lines appears as

Signif. codes: 0 S***S 0.001 S**S 0.01 S*S 0.05 S.S 0.1 S S 1

except that the Ss have funny accents. If I try again, using the noae option
\usepackage[noae]{Sweave}

the funny S characters disappear (are blank), but I get messages in the log:

Missing character: There is no ‘ in font cmtt10!
Missing character: There is no ’ in font cmtt10!

There seems to be a font problem somewhere, but I don't know how to 
track it down. In my preamble, I am loading the
following packages:

\documentclass[12pt]{article}
\usepackage{float}
\usepackage{amssymb, amsmath, amsfonts}
\usepackage[noae]{Sweave}
% \usepackage{fancyvrb} % loaded by Sweave
\usepackage{color}
\usepackage{url}
\usepackage[round]{natbib}
\usepackage{bm}

Does this ring a bell for anyone?

thanks,
-Michael


-- 
Michael Friendly     Email: friendly AT yorku DOT ca 
Professor, Psychology Dept.
York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street    http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT  M3J 1P3 CANADA




More information about the R-help mailing list