[Rd] Getting param names of primitives
Seth Falcon
sfalcon at fhcrc.org
Wed Jul 11 15:40:23 CEST 2007
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
More information about the R-devel
mailing list