[R-pkg-devel] why can't we importFrom 'methods' ?
Martin Maechler
m@echler @ending from @t@t@m@th@ethz@ch
Thu May 17 17:57:39 CEST 2018
>>>>> Brian G Peterson <brian at braverock.com>
>>>>> on Thu, 17 May 2018 10:51:17 -0500 writes:
> newer versions of R require importFrom for functions from
> 'stats', 'graphics' and many other packages that used to
> be assumed to be on the search path and thus available.
> 'methods' continues to have seemingly different treatment.
> If you try to use importFrom to import a single function
> (in this case 'hasArg') from methods, you receive an ERROR
> from R CMD check
> Namespace dependency not required : 'methods'
> but without the importFrom, you see a number of NOTE's
> no visible global function definition for 'hasArg'
> I don't want to import all of 'methods', as I only need
> one function.
Many many good(*) packages import from methods, from R base, it
is "of course" only 'stats4';
from packages I maintain: Matrix, Rmpfr, copula (at least)
then many hundreds of high quality bioconductor packages.
> What am I doing wrong?
Did you add it to the DESCRIPTION to the 'Imports:' ?
> Regards,
> Brian
> --
> Brian G. Peterson http://braverock.com/brian/ Ph:
> 773-459-4973 IM: bgpbraverock
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list