Re: [Rd] Getting param names of primitives

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Wed, 11 Jul 2007 06:40:23 -0700

Prof Brian Ripley <ripley_at_stats.ox.ac.uk> writes:

> My problem is that if we make formals() work on primitives, people will
> expect
>
> formals(log) <- value
>
> to work, and it cannot.

But it could give an informative error message. Asking for formals() seems to make sense so making it work seems like a good idea. I'll agree that it working might encourage someone to try formals<-(), but the fact that it cannot do anything but error seems like a strange reason not to make formals() work.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 11 Jul 2007 - 13:44:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 11 Jul 2007 - 15:06:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.