Re: [Rd] RFC: What should ?foo do?

2008-04-26 Thread Duncan Murdoch
On 25/04/2008 2:47 PM, Prof Brian Ripley wrote: > On Fri, 25 Apr 2008, Deepayan Sarkar wrote: > >> For what it's worth, I use ?foo mostly to look up usage of functions >> that I know I want to use, and find it perfect for that (one benefit >> over help() is that completion works for ?). The only t

Re: [Rd] median methods

2008-04-26 Thread Prof Brian Ripley
On Sat, 26 Apr 2008, Rob Hyndman wrote: > Can we please have a ... argument in median() to make it possible to pass > arguments to specific methods. Not without a reasoned case -- see 'Writing R Extensions' as to why it is a non-trivial change that affects all existing methods (and there are so

Re: [Rd] returning vectors of unknown size from C (with .C)

2008-04-26 Thread David Henderson
Hola Ramon! >> But that is possible (you malloc the memory for a local copy in the rist >> call), and rpart does something like it. >> > > Aha, thanks, I didn't know it was doable (or easy). I'll look at the > rpart code. One further question, though, what is "the rist call"? I think Brian mea

[Rd] median methods

2008-04-26 Thread Rob Hyndman
Can we please have a ... argument in median() to make it possible to pass arguments to specific methods. _ Rob J Hyndman Professor of Statistics, Monash University Editor-in-Chief, International Journal of Forecasting http://www.robhyndman.info/ [[alternative

Re: [Rd] returning vectors of unknown size from C (with .C)

2008-04-26 Thread Ramon Diaz-Uriarte
On Sat, Apr 26, 2008 at 11:38 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Sat, 26 Apr 2008, Ramon Diaz-Uriarte wrote: > > > > On Sat, Apr 26, 2008 at 3:19 AM, Duncan Murdoch <[EMAIL PROTECTED]> > wrote: > > > > > Ramon Diaz-Uriarte wrote: > > > > > > > > > > Dear All, > > > > > > > > In a

Re: [Rd] returning vectors of unknown size from C (with .C)

2008-04-26 Thread Prof Brian Ripley
On Sat, 26 Apr 2008, Ramon Diaz-Uriarte wrote: > On Sat, Apr 26, 2008 at 3:19 AM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> Ramon Diaz-Uriarte wrote: >> >>> Dear All, >>> >>> In a package, I am using ".C" to call some C functions. In one case, >>> the number of elements of the return vectors ar

Re: [Rd] returning vectors of unknown size from C (with .C)

2008-04-26 Thread Ramon Diaz-Uriarte
On Sat, Apr 26, 2008 at 3:19 AM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > Ramon Diaz-Uriarte wrote: > > > Dear All, > > > > In a package, I am using ".C" to call some C functions. In one case, > > the number of elements of the return vectors are not known in R before > > the C call. (Two of the

Re: [Rd] Bug in R 2.7 for over long lines (crasher+proposed fix!) (PR#11284)

2008-04-26 Thread p . dalgaard
[EMAIL PROTECTED] wrote: > OK, I am just sending it here too as it looks like [EMAIL PROTECTED] g > is not the right place: > =20 I think it was seen there too, just that noone got around to reply. In=20 R-bugs, there's a filing system so that it won't be completely forgotten.= =2E. However, your

Re: [Rd] Bug in R 2.7 for over long lines (crasher+proposed fix!) (PR#11281)

2008-04-26 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > OK, I am just sending it here too as it looks like r-devel@r-project.org > is not the right place: > I think it was seen there too, just that noone got around to reply. In R-bugs, there's a filing system so that it won't be completely forgotten... However, your mail

[Rd] Misuse of get(getOption("device"))() in packages

2008-04-26 Thread Prof Brian Ripley
Quite a few packages have used this construct to launch a device, but it has several flaws. It's not clear in most cases that a package really needs to launch a new device (R will do so if needed), but 2.7.0 provides a function dev.new() to do so. (If you really need this in a GPL-ed package