[Rd] S4 assignment \alias and \usage

Seth Falcon sfalcon at fhcrc.org
Wed May 30 16:10:26 CEST 2007


Paul Gilbert <pgilbert at bank-banque-canada.ca> writes:

> What is the Rd file alias and usage syntax for an S4 assignment method? 
>    I have been trying variations on
>
> \alias{TSdoc<-,default-method}
>
> \usage{
>      \S4method{TSdoc}{default}(x) <- value
>
> but so far I have not got it right according to various codoc, etc,
> checks.

If you have your own generic TSdoc<-, then I think you want:

\alias{TSdoc<-}
\alias{TSdoc<-,someClass,anotherClass-method}

You may not be allowed to specify usage, but I think the issue only
arises when setting methods for a generic documented elsewhere.

+ seth

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



More information about the R-devel mailing list