Closed kevinrue closed 3 years ago
Hm.. thinking about this more, ggthemes
is only used in the user session, i.e. it is not a dependency of ggstatsplot
.
So it is natural to leave it to users to install, if they wish to use it.
Closing the issue
This is by design.
Error in library(afex) : there is no package called ‘afex’
As you mention, it is in Suggests
and the package will suggest the user to install it if the function can't find it:
even the full installation command in the
README
does not installggthemes
This is because ggthemes
plays no role at all in ggstatsplot
functions. This example is just to show how one can aesthetically modify the default if one wishes to. All ggstatsplot
functions have ggtheme
argument, whose function is to allow users to install whatever theme package they wish to install. So if someone is choosing to use a theme from ggthemes
package, it is safe to assume that they have it installed.
When running the first chunk of code in the following section
https://github.com/IndrajeetPatil/ggstatsplot#ggwithinstats
Namely
I get the following error messages
Obviously, running the following code solves the issue
However, it would be nicer that dependencies are installed with the package itself, to avoid users running into those issues at runtime.
I can see
afex
in theSuggests
section of the DESCRIPTION file.However, even the full installation command in the README does not install
ggthemes
:declares installing the following list of packages:
For https://github.com/openjournals/joss-reviews/issues/3167