wilkelab / ggtext

Improved text rendering support for ggplot2
https://wilkelab.org/ggtext/
GNU General Public License v2.0
651 stars 37 forks source link

element_markdown error #25

Closed meersel closed 4 years ago

meersel commented 4 years ago

After installation of the new ggplot2 version 3.3.0 (CRAN), the ggtext::element_markdown() function does not work anymore. It produces the following error message:

Error in richtext_grob(label, x = x, y = y, hjust = hj, vjust = vj, halign = halign, : unused arguments (halign = halign, valign = valign)

  1. element_grob.element_markdown(el, ...)
  2. element_grob(el, ...)
  3. element_render(theme, "plot.title", plot$labels$title, margin_y = TRUE)
  4. ggplot_gtable.ggplot_built(data)
  5. ggplot_gtable(data)
  6. print.ggplot(x)
  7. function (x, ...) UseMethod("print")(x)

Brief description of the problem or desired feature.

# insert reprex here
clauswilke commented 4 years ago

Your ggtext and gridtext packages are out of synch. My best guess is installing ggplot2 installed the latest version of gridtext, but you're running an old version of ggtext. Install the latest version of everything and things should be fine.