stefano-meschiari / latex2exp

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

TeX() output arg choice should be "character" not "text" #27

Closed dholstius closed 2 years ago

dholstius commented 3 years ago

Thank you for a wonderful package!! Just a minor bug.

The function signature for TeX() is:

function (string, output = c("expression", "text", "ast")) 

... but the signature for .parseTeX() is:

function (string, output = c("expression", "character", "ast")) 

Passing output = "text" to TeX() therefore fails to produce the desired result (but passing output = "character" does).

stefano-meschiari commented 2 years ago

Fixed in 0.9.0.