[Rd] Problems initializing an extended S4 class

2008-02-28 Thread Jim Regetz
Hi all, I am having trouble extending S4 classes in cases where I'm using both validity and initialize methods. I've read as much S4 information as I can find, but I've yet to have that "a-ha" moment. In my application, I am using validity methods to guard against inappropriate input data that

Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-28 Thread Prof Brian Ripley
Changing deparse (and internal uses) to only deparse as many lines as are needed solves this and seems to give a noticeable performance post (5-10% or more) on quite a few packages. On Wed, 27 Feb 2008, Prof Brian Ripley wrote: > On Wed, 27 Feb 2008, Martin Maechler wrote: > >> Thank you Henrik

Re: [Rd] Unix-like touch to update modification timestamp of file?

2008-02-28 Thread Nicholas Lewin-Koh
Wow, this has to win the prize for some of the most obscure documentation ever. Kudos on your M$-archaeology. Nicholas Message: 9 Date: Wed, 27 Feb 2008 15:23:51 -0500 From: "Gabor Grothendieck" <[EMAIL PROTECTED]> Subject: Re: [Rd] Unix-like touch to update modification timestamp of file?

Re: [Rd] looking for R_approx in 2.6

2008-02-28 Thread Roger D. Peng
Looks like it was removed in r42551 and from the comment it appears it was not part of the R API anyway. -roger Peter Kharchenko wrote: > Hi there. I was wondering what happened to R_approx from > R_ext/Applic.h ... it seems to have dissapeared in 2.6.x, and I can't > seem to find it simply

Re: [Rd] mean (PR#10864)

2008-02-28 Thread Greg Snow
Look again at the whole function of mean.default. All of the missing values have already been removed if na.rm==TRUE before the call to stats::median, so why waste time looking for missing values that are not there. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare

[Rd] looking for R_approx in 2.6

2008-02-28 Thread Peter Kharchenko
Hi there. I was wondering what happened to R_approx from R_ext/Applic.h ... it seems to have dissapeared in 2.6.x, and I can't seem to find it simply listed in some other header file. thanks, -peter. __ R-devel@r-project.org mailing list https://stat

Re: [Rd] Bug in help(). (PR#10859)

2008-02-28 Thread ripley
On Wed, 27 Feb 2008, [EMAIL PROTECTED] wrote: > > There appears to be a bug in help() when there are multiple packages > attached > containing functions with the same name, and offline=TRUE. It's in utils:::print.help_files_with_topic, now fixed in R-devel. The simple workaround is to supply the

[Rd] mean (PR#10864)

2008-02-28 Thread paulponcet
Full_Name: Paul PONCET Version: 2.6.0 OS: Windows 2000 Submission from: (NULL) (83.137.240.218) Function 'mean.default' calls function 'stats::median' if 'trim >= 0.5'. In that case the call should be 'stats::median(x, na.rm = na.rm)' instead of 'stats::median(x, na.rm = FALSE)'. ___

[Rd] Bug in help(). (PR#10859)

2008-02-28 Thread r . turner
There appears to be a bug in help() when there are multiple packages attached containing functions with the same name, and offline=TRUE. Example: library(mgcv) library(gam) If one simply does: help(gam) # No ``offline=TRUE'' then the following message appears: Help