Skip to content

Listing Packages in Depends or Imports

2 messages · Dario Strbenac, Uwe Ligges

#
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

--------------------------------------
Dario Strbenac
PhD Student
University of Sydney
Camperdown NSW 2050
Australia
#
On 27.06.2014 04:00, Dario Strbenac wrote:
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