I'm creating a new package in R and I'd like to use ggplot2
as the plotting system. I already declared ggplot2
in my DESCRIPTION file. There are several functions in ggplot2
so, although it is not recommended, I'm using @import ggplot2
to access all of them. However, when I run the code, I get the following message:
Function
ggplot
could not be found.
Is there a specific way to make use of ggplot2
when creating a new package?