Re: [Rd] S4 assignment \alias and \usage

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Wed, 30 May 2007 09:36:57 -0700

Paul Gilbert <pgilbert_at_bank-banque-canada.ca> writes:

> Let me back up a bit, I may be making another mistake. My code has
>
> setGeneric("TSdoc<-",
> def= function(x, value) standardGeneric("TSdoc<-"),
> useAsDefault= function (x, value) {attr(x, "TSdoc") <- value ; x })
>
> setGeneric("TSdoc",
> def= function(x) standardGeneric("TSdoc"),
> useAsDefault= function(x) attr(x, "TSdoc"))

Aside:

It seems odd to me to define such defaults. How do you know x is going to have a TSdoc attribute?

-- 
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 30 May 2007 - 16:39:40 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 30 May 2007 - 18:33:48 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.