Skip to content
Prev 8484 / 12125 Next

[R-pkg-devel] Svar: Warning about ggplot although no ggplot is used anywhere in the package

<> The weird thing is: Although my package fbst depends on the package rstanarm which itself imports ggplot,
<> (1) no package code uses ggplot in any form,
<> (3) no vignette uses any ggplot command.
<> I am thankful for any suggestion why this error occurs.
<> All the best and kind regards,
In the NAMESPACE file it looks like you are importing from the 'viridis' package, which again imports 'ggplot', though I am not sure which function you are actually importing as importFrom("viridis", "viridis") does not match any function that I can see is exported by the package. Maybe you are unintentionally invoking a part of ggplot through viridis?

Regards,
Kristian Hovde Liland