Dear All, I understand the R CMD checks with only the base package attached, everything else (including the other packages bundled with the base R) should be imported and most importantly declared in the Imports field from the DESCRIPTION file.
However, I do use functions from other packages than base (utils, grDevices, stats, graphics), for which it is sufficient to declare importFrom() in the NAMESPACE file. For instance, it is not required to specify utils in the Imports: field from DESCRIPTION, when using importFrom("utils", "packageDescription") in NAMESPACE. The opposite happens for importFrom("methods", "is"), which ends up in the error: Namespace dependency not required: ‘methods’ Is there a special reason for which package methods is treated differently from all other packages bundled with the base R? Thank you, Adrian -- Adrian Dusa University of Bucharest Romanian Social Data Archive Soseaua Panduri nr. 90-92 050663 Bucharest sector 5 Romania https://adriandusa.eu [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel