From MSchwartz at MedAnalytics.com  Mon Dec 20 22:29:36 2004
From: MSchwartz at MedAnalytics.com (Marc Schwartz)
Date: Mon Dec 20 22:29:46 2004
Subject: [Rd] RE: [R] SAS or R software
In-Reply-To: <915D2D65A9986440A277AC5C98AA466F3F668F@groamrexm02.amer.pfizer.com>
References: <915D2D65A9986440A277AC5C98AA466F3F668F@groamrexm02.amer.pfizer.com>
Message-ID: <1103578176.10887.75.camel@horizons.localdomain>

On Mon, 2004-12-20 at 16:13 -0500, Warnes, Gregory R wrote:
> Yes, par(family="mono") would work, except that I get R segfaults from this
> sequence:
> 
> > 
> > plot.new()
> > par(family="mono")
> > par(cex=8)
> > strheight("foo")
> 
> Process R segmentation fault (core dumped) at Mon Dec 20 16:07:56 2004
> 
> on R 2.0.1 (2004-11-15), Red Hat Enterprise Linux AS release 3 
> 
> In my code I call strheight and strwidth several times in order to find a
> cex that makes the text best fit the display area.  Once the segfaulting is
> fixed, I'll update my code to use par(family="mono").
> 
> -G

<snip>

Greg, it works here under FC3:

> plot.new()
> par(family="mono")
> par(cex=8)
> strheight("foo")
[1] 0.1083942

Not sure where the difference is.

Marc


[Rd] RE: [R] SAS or R software
Marc Schwartz