stefano-meschiari / latex2exp

Use LaTeX in R graphics.
Other
186 stars 10 forks source link

output = "text" inconsistent with output = "character" #12

Closed Aariq closed 6 years ago

Aariq commented 6 years ago

According to the help file, output = "text" returns a string, but it actually returns an expression the same as output = "expression". It should be output = "character" in the help file or the function should be changed so output = "text" works.

caijun commented 6 years ago

I found the same problem in the help file. I documented in my issue https://github.com/stefano-meschiari/latex2exp/issues/13

Aariq commented 6 years ago

It appears that this has been fixed as of the most recent commit. It now gives a helpful error message if you try to use output = "text" and the help file has been updated to use "character".

Aariq commented 6 years ago

Install the most recent development version with devtools::install_github("stefano-meschiari/latex2exp")