After re-installing packages on a new machine, when I go to run element_markdown() to format strip text on a facet_nested, facet_grid2 or facet_wrap2 object I get the following error:
Error in `FUN()`:
! Don't know how to get height of <integer> object
I think this has to do with the compatibility between ggh4x and ggtext, as the element_markdown() formatting of strip text still works on facet_wrap or facet_grid.
Error in `FUN()`:
! Don't know how to get height of <integer> object
Run `rlang::last_trace()` to see where the error occurred.
I had this script working just fine prior to reinstallation, so I suspect it has to do with updates to ggtext (0.1.2), ggh4x (0.2.8) or ggplot2 (3.5.0). Any help appreciated - thanks in advance!
Thanks for the report! I expect this to be the same as #151, #153 and #156.
You can install from GitHub to solve the issue: devtools::install_github("teunbrand/ggh4x").
After re-installing packages on a new machine, when I go to run
element_markdown()
to format strip text on afacet_nested
,facet_grid2
orfacet_wrap2
object I get the following error:I think this has to do with the compatibility between
ggh4x
andggtext
, as theelement_markdown()
formatting of strip text still works onfacet_wrap
orfacet_grid
.Examples below with
facet_wrap()
: works fine...Example below using
facet_wrap2()
: error.I had this script working just fine prior to reinstallation, so I suspect it has to do with updates to ggtext (0.1.2), ggh4x (0.2.8) or ggplot2 (3.5.0). Any help appreciated - thanks in advance!