Re: [Rd] Default values in control list of function

2011-06-25 Thread Gabor Grothendieck
On Sat, Jun 25, 2011 at 9:21 PM, Prof. John C Nash wrote: > In building a function for a package, I'd like to set the defaults in a > control list, > > e.g., > > makeg<-function(parameters, eps = 1.0e-7, control=list(showwork=TRUE, > rubbish=1.0e+101)){ > >    etc. > } > > This does not provide

[Rd] Default values in control list of function

2011-06-25 Thread Prof. John C Nash
In building a function for a package, I'd like to set the defaults in a control list, e.g., makeg<-function(parameters, eps = 1.0e-7, control=list(showwork=TRUE, rubbish=1.0e+101)){ etc. } This does not provide showwork or rubbish within the function if control() is not fully specified.