You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# for reproducibility and data
set.seed(123)
library(WRS2) # for data
library(afex) # to run anova# plot
ggwithinstats(
data=WineTasting,
x=Wine,
y=Taste,
title="Wine tasting",
caption="Data source: `WRS2` R package",
ggtheme=ggthemes::theme_fivethirtyeight(),
ggstatsplot.layer=FALSE
)
I get the following error messages
Error in library(afex) : there is no package called ‘afex’
Error in loadNamespace(name) : there is no package called ‘ggthemes’
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 the Suggests section of the DESCRIPTION file.
However, even the full installation command in the README does not install ggthemes:
remotes::install_github(
repo="IndrajeetPatil/ggstatsplot", # package path on GitHubdependencies=TRUE, # installs packages which ggstatsplot depends onupgrade_dependencies=TRUE# updates any out of date dependencies
)
declares installing the following list of packages:
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
even the full installation command in the README does not install ggthemes
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 openjournals/joss-reviews#3167
The text was updated successfully, but these errors were encountered: