From charlie at stat.umn.edu  Mon Aug 22 01:55:04 2005
From: charlie at stat.umn.edu (Charles Geyer)
Date: Sun, 21 Aug 2005 18:55:04 -0500
Subject: [Rd] bizarre signif stars in Sweave latex
In-Reply-To: <mailman.9.1124618400.6983.r-devel@r-project.org>
References: <mailman.9.1124618400.6983.r-devel@r-project.org>
Message-ID: <20050821235504.GB32730@stat.umn.edu>

OK.  I give up.  I'll ask a stupid question.
How do I get the $!#@*$ signif stars line printed by summaries
to not look extremely bizarre in the latex produced by Sweave?
For example, see p. 7 of

    http://www.stat.umn.edu/geyer/aster/library/aster/doc/tutor.pdf

I can see what the problem is.  R emits non-ascii characters (as it
is supposed to do), Sweave puts them in the tex file, and latex can't
handle them.  But I don't see the solution.

Hmmmm.  Well I just discovered a kludge

<<foo,include=FALSE,echo=FALSE>>=
Sys.setlocale(category = "LC_ALL", locale = "C")
@

at the beginning of the Rnw file.  But is that TRT (the Right Thing)?

-- 
Charles Geyer
Professor, School of Statistics
University of Minnesota
charlie at stat.umn.edu



[Rd] bizarre signif stars in Sweave latex
Charles Geyer