[Rd] Writing R-extensions

Berwin A Turlach berwin at maths.uwa.edu.au
Mon Sep 5 03:17:07 CEST 2005


G'day Luke,

>>>>> "LT" == Luke Tierney <luke at stat.uiowa.edu> writes:

    >> On Sat, 27 Aug 2005, Berwin A Turlach wrote:

    >>> 3) The final sentence in the section on `Registering S3
    >>> methods' is:
    >>> 
    >>> Any methods for a generic defined in a package that does not
    >>> use a name space should be exported, and the package defining
    >>> and exporting the method should be attached to the search path
    >>> if the methods are to be found.
    >>> 
    >>> [...] is the implication of that sentence that if I have a
    >>> package with a name space which defines a method for a generic
    >>> defined in another package that does not use a name space,
    >>> then this method is only found if my package is attached to
    >>> the search path and mere loading of the namespace is not
    >>> sufficient?

    LT> There is no typo here and your reading in the paragraph above
    LT> is correct.
Thanks for the clarification.  

May I suggest that nevertheless there is a typo in this sentence and
it should be ".... the package defining and exporting the methods..."?
One reason why this sentence had me puzzled was that it uses twice
"methods" and once "method". :)

Cheers,

        Berwin



More information about the R-devel mailing list