[Rd] problem with plot.lm

2007-04-19 Thread Robert Kushler
There is a problem with the "Constant Leverage" plot. Try the following: y <- c(8,9,7,9,6,9,5,9) grp <- factor(rep(1:4,each=2),labels=c('A','B','C','D')) mod <- lm(y ~ grp) windows() par(mfrow=c(2,2)) plot(mod) # Plot 5 ("Constant Leverage") has X axis labels sorted # by the fitted value (as adv

[Rd] update on failing Mac packages in 2.4.1

2007-04-19 Thread Simon Urbanek
This is about recent packages failing to load on Mac in R 2.4.1 with "unable to load shared library" errors: The good news is that I found and fixed the problem, the bad news is that the build machine is slow and needs to re-build both R and the packages which will take some time. Expect mos

Re: [Rd] printf capture

2007-04-19 Thread Simon Urbanek
On Apr 19, 2007, at 10:31 AM, mel wrote: > Prof Brian Ripley a écrit : > >> You can always link in a wrapper that defined printf and passes >> the arguments to Rprintf. > > I apologize but confess i didn't completely understand this > suggestion. > The wrapper: #include int printf(const c

[Rd] setClass inside a function

2007-04-19 Thread Iago Mosqueira \(Cefas\)
Hello, I would like to create a function that gets passed a class name and then calls setClass, and a few other functions, inside. I have done this in the past with setmethod, creating accessors for all slots in a set of S4 classes. But setClass is choking when my function is called isnide a pa

Re: [Rd] [R] Error loading libraries in MAC

2007-04-19 Thread Weiwei Shi
same here. weiwei On 4/19/07, Sean Davis <[EMAIL PROTECTED]> wrote: > I'll chime in to note the same. And just to add, sometimes restarting R seems > to alleviate the problem > > On Wednesday 18 April 2007 18:58, Gregory Warnes wrote: > > I have received a number of reports of problems with

Re: [Rd] printf capture

2007-04-19 Thread mel
Prof Brian Ripley a écrit : > You can always link in a wrapper that defined printf and passes the > arguments to Rprintf. I apologize but confess i didn't completely understand this suggestion. > It's documented in 'Writing R Extensions'. > The defines used for compatibility with @Sl{} someti

Re: [Rd] (PR#9613) [Wishlist] to uniform help(x) and library(help=x)

2007-04-19 Thread ripley
What library(help=foo) produces is not HTML and has no hyperlinks, so why do you want it displayed in a browser? If you do want text displayed in a browser, you can set options("pager") to point to your browser (or a wrapper). It is no different from other library() help modes, like library()

Re: [Rd] [R] Error loading libraries in MAC

2007-04-19 Thread Sean Davis
I'll chime in to note the same. And just to add, sometimes restarting R seems to alleviate the problem On Wednesday 18 April 2007 18:58, Gregory Warnes wrote: > I have received a number of reports of problems with recent unversal > Mac packages from CRAN when used with R 2.4.1. Has somethin