From sfalcon at fhcrc.org  Wed May 30 18:36:57 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Wed, 30 May 2007 09:36:57 -0700
Subject: [Rd] S4 assignment \alias and \usage
In-Reply-To: <465D937F.80207@bank-banque-canada.ca> (Paul Gilbert's message of
	"Wed, 30 May 2007 11:08:47 -0400")
References: <465D7BB2.3050405@bank-banque-canada.ca>
	<18013.34742.228595.528262@stat.math.ethz.ch>
	<465D937F.80207@bank-banque-canada.ca>
Message-ID: <m2abvmfety.fsf@ziti.local>

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



[Rd] S4 assignment \alias and \usage
Seth Falcon