Problems in build and check

checking package dependencies ... ERROR
Namespace dependencies missing from DESCRIPTION Imports/Depends entries:
'ggplot2', 'reshape2'

I am getting this error while building and checking the packages. Any help?

Hi, yes, you need to add ggplot2 and reshape to the DESCRIPTION file of your package. Here is a link to the online book: Chapter 8 Package metadata | R Packages.

1 Like

Hey! I already have them in the suggests: but still the problem persists. Usually I need to import them in the function as @ImportFrom ggplot2 ggplot geom_line . So I have imported them accordingly ,updated the documentation such that they available in the NAMESPACE.

Ok, if you have @importFrom then you probably have to have ggplot in Imports, not Suggests


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.