Thanks a lot, I used
#' @rawNamespace import(ggplot2, except = last_plot)
and I don't have the warning message;
So, I have other issue.
my mypackage contains one function with ggplot&ggplotly
When I call it, the graph is not represented and there are any error message.
The function (of mypackage)that I calls contain :
....
p<-ggplot(tab) +
geom_line(aes(x =tab$cum, y = tab$linkcum )) +
geom_line(aes(x =tab$flowcum, y = tab$flowcum )) +
theme(
panel.background = element_blank(),
panel.grid.minor = element_blank(),
panel.grid.major = element_line(color = "gray50", size = 0.5),
panel.grid.major.x = element_blank(),
axis.text.y = element_text(colour="#68382C", size = 9))
ggplotly(p) %>% layout(dragmode = "select")
Is it possible to use ggplot inside a function ?
Thanks in advance to your help!