-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some themes in downstream packages are currently not valid #3310
Comments
I think these are all cases where all we can do is inform the package maintainers that they need to fix their code. @paleolimbot Could you reach out to them? And also recommend to them the Lines 245 to 252 in 3b69172
|
On it. Is there a reason that using |
Many parts of the theme code need revising, including how validation works, but that's for another day. I plan to look into it seriously once this release is out the door. |
Sorry, one more theme-related question. Is there a way to use something that isn't an infix operator to replace theme elements? With #' @importFrom ggplot2 %+replace% which means that some packages that have ggplot2 in Suggests may have to put it in Imports (I think?). I suppose they could also do: `%+replace%` <- ggplot2::`%+replace%` |
All of those packages already import ggplot2 so I rolled with it. For my brain to keep track (or in case anybody is curious):
|
It's unclear to me why xpose breaks. There's something I don't understand yet. They use the recommended pattern and it should work. |
I should have checked xpose more carefully...those themes aren't the problem |
Thanks! |
I didn't see you mentioned library(ggthemr)
ggthemr('dust')
#> Warning: New theme missing the following elements: axis.ticks.length.x,
#> axis.ticks.length.x.top, axis.ticks.length.x.bottom, axis.ticks.length.y,
#> axis.ticks.length.y.left, axis.ticks.length.y.right |
It looks like you've already noted this in Mikata-Project/ggthemr#31 . I'm not sure why our checks didn't catch ggthemr, but feel free to discuss on the ggthemr issue. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
In the revdep check (#3303), packages that define complete themes fail because the themes don't contain all required elements (several were added by #2934).
In addition, some rstan dependencies fail on
stan_plot()
(breathteststan) andstan_hist()
(fergm). rstan defines the default theme at package build time instead of within a function, which might be the cause of these failures.The text was updated successfully, but these errors were encountered: