>>>>> Brian G Peterson <br...@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:' ?
> Brian G. Peterson http://braverock.com/brian/ Ph:
> 773-459-4973 IM: bgpbraverock
> Rfirstname.lastname@example.org mailing list
Remail@example.com mailing list