RE: [Rd] Reorganization of packages in the R distribution

2003-12-18 Thread Prof Brian Ripley
The short answer is no: there is no supported way to override an R system function. The only reason we can see to do that is to correct a bug, and we would prefer to get the buggy original changed ASAP. It is much preferable for package authors to name variant versions differently: if any 1 is

[Rd] a debugging difficulty

2003-12-18 Thread Patrick Burns
I had an error to debug that turned out to be essentially: > NULL * matrix(1:4, 2) Error: dim<- length of dims do not match the length of object The equivalent of the NULL was a variable that was meant to be a scalar. It took me a while to track down the problem because I was focusing on looking

[Rd] qbinom when probability is 1 (PR#5900)

2003-12-18 Thread jonathan-cran
Full_Name: Jonathan Swinton Version: 1.8.0 OS: Windows 2000 Submission from: (NULL) (193.132.159.34) Calling qbinom with a sample probability of 1 returns NaN > qbinom(p=0.95,size=10,prob=1) [1] NaN I believe that this is wrong and that qbinom(p,size,prob=1) should always be size for 0= p,

Re: [Rd] a debugging difficulty

2003-12-18 Thread Prof Brian Ripley
The error message is easy to expand, and R is a bit inconsistent as we do have error("length of dimnames[%d] not equal to array extent",i+1); I've seen similar things debugging recently, and don't know the cause. On Thu, 18 Dec 2003, Patrick Burns wrote: > I had an error to debug that turned

Re: [Rd] qbinom when probability is 1 (PR#5900)

2003-12-18 Thread Prof Brian Ripley
The cases of prob=0 and prob=1 were specifically excluded in the code, as well as n=0. I've added special-case code for all of these. On Thu, 18 Dec 2003 [EMAIL PROTECTED] wrote: > Full_Name: Jonathan Swinton > Version: 1.8.0 > OS: Windows 2000 > Submission from: (NULL) (193.132.159.34) > > >

[Rd] Re: [R] R GUI dies using postcript() in Windows XP Pro (PR#5910)

2003-12-18 Thread dmurdoch
On Thu, 18 Dec 2003 18:02:07 +, Gavin Simpson <[EMAIL PROTECTED]> wrote : >Dear List, > >My colleague has been having a problem with the following data and >plotting commands. The example below is part of a larger set of plots, >but I've isolated the problem to this example using this small