From maechler at stat.math.ethz.ch  Wed May 30 16:18:30 2007
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Wed, 30 May 2007 16:18:30 +0200
Subject: [Rd] S4 assignment \alias and \usage
In-Reply-To: <465D7BB2.3050405@bank-banque-canada.ca>
References: <465D7BB2.3050405@bank-banque-canada.ca>
Message-ID: <18013.34742.228595.528262@stat.math.ethz.ch>

>>>>> "PaulG" == Paul Gilbert <pgilbert at bank-banque-canada.ca>
>>>>>     on Wed, 30 May 2007 09:27:14 -0400 writes:

    PaulG> What is the Rd file alias and usage syntax for an S4 assignment method? 
    PaulG> I have been trying variations on


    PaulG> \alias{TSdoc<-,default-method}

Do you really have a class called "default" ????

Using "<func>.default" is an S3 concept which in S4 is replaced
by defining methods for "ANY".


In Matrix, we have

\alias{dim<-,Matrix-method}

and that works fine
-- though we don't have a \usage{.} there, since this really is in 
Matrix-class.Rd

Martin Maechler

    PaulG> \usage{
    PaulG> \S4method{TSdoc}{default}(x) <- value

    PaulG> but so far I have not got it right according to various codoc, etc, checks.

    PaulG> Paul Gilbert



[Rd] S4 assignment \alias and \usage
Martin Maechler