From bolker at zoology.ufl.edu  Wed Aug 13 22:53:03 2008
From: bolker at zoology.ufl.edu (Ben Bolker)
Date: Wed, 13 Aug 2008 16:53:03 -0400
Subject: [Rd] messing with ...
In-Reply-To: <48A30D60.2020304@acm.org>
References: <48A3019E.5080209@zoology.ufl.edu> <48A30D60.2020304@acm.org>
Message-ID: <48A349AF.2030501@zoology.ufl.edu>

Tony Plate wrote:
> here's my two cents:
> - require names on parameters, rather than order
> - construct calls and use eval() rather than do.call() (then you can 
> manipulate list(...) without the ugh factor of do.call() -- though is 
> do.call() any different to eval() in R? -- I know in S-PLUS that the use 
> of do.call() can completely blow out memory usage)
> - to avoid manually duplicating arg lists, use constructs like 
> names(formals(optim)) and pmatch to find args that below to the 
> optimizer function vs the objective function
> 
> -- Tony Plate
>>
>>  thanks
>>
>>   Ben Bolker
>>

   The ugh factor referred to any explicit call or argument list
manipulation (it would be nicer to just pass ...) -- but your
advice makes sense, especially the naming stuff.

   Brian Ripley wrote:

 >  Using wrappers is a better idea: you can see the idea in several 
places in the base graphics code.

  Have you got a favorite example?

   cheers
     Ben


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20080813/b408ad51/attachment.bin>


[Rd] messing with ...
Ben Bolker