Does roxygen2 automatically write NAMESPACE directives for “Imports:” packages?

前端 未结 1 404
误落风尘
误落风尘 2020-12-05 01:50

tl;dr version of my question

If I want to import packages, do I have to manually write import() directives into my NAMESPACE file? It seems like roxyg

相关标签:
1条回答
  • 2020-12-05 02:26

    Expanding on my comment, if you want to automatically add namespace directives for packages/functions you import, you can do so by adding the @imports package or @importFrom package function line to the roxygen2 documentation header of your function.

    However, as @hadley pointed out, it will only modify the NAMESPACE, but not affect the package DESCRIPTION

    0 讨论(0)
提交回复
热议问题