[Rd] Listing Packages in Depends or Imports

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Jun 27 13:07:21 CEST 2014



On 27.06.2014 04:00, Dario Strbenac wrote:
> Hello,
>
> The Writing R Extensions manual gives confusing advice. Compare
>
> Packages listed in imports or importFrom directives in the NAMESPACE file should almost always be in ‘Imports’ and not ‘Depends’.
>
> with
>
> Almost always packages mentioned in ‘Depends’ should also be imported from in the NAMESPACE file
>


Right. In the DESCRIPTION file, you should try to be in "Imports" only, 
but even you have to declare in "Depends", you still need to import with 
appropriate directives in the NAMESPACE file.

Best,
Uwe Ligges



> --------------------------------------
> Dario Strbenac
> PhD Student
> University of Sydney
> Camperdown NSW 2050
> Australia
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list