From S.Ellison at LGCGroup.com  Fri Sep  1 16:27:00 2017
From: S.Ellison at LGCGroup.com (S Ellison)
Date: Fri, 1 Sep 2017 15:27:00 +0100
Subject: [Rd] side-effect of calling functions via `::`
In-Reply-To: <22953.19594.227858.248280@stat.math.ethz.ch>
References: <59A93D09.8010006@gipsa-lab.fr>
 <986041A4-19BE-4500-AD7E-4B2A32504D76@rstudio.com>
 <22953.19594.227858.248280@stat.math.ethz.ch>
Message-ID: <1A8C1289955EF649A09086A153E267240BD80E9070@GBTEDVPEXCMB04.corp.lgc-group.com>



> -----Original Message-----
> From: R-devel [mailto:r-devel-bounces at r-project.org] On Behalf Of Martin Maechler
> ...
> >>>>> Lionel Henry <lionel at rstudio.com>
>     > A package should probably never register a S3 method unless it owns
>     > either the generic or the class.
> 
> I agree... (and typically it does "own" the class)

If that is true and a good general guide, is it worth adding something to that effect to 1.5.2 of "Writing R extensions"?
At present, nothing in 1.5.2 requires or recommends that a package using S3method owns either class or generic. 


S Ellison


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



[Rd] side-effect of calling functions via `::`
S Ellison