stefano-meschiari / latex2exp

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

fix parameter list of `TeX` & improve argument checking & fix parsing of `\\}` #7

Closed jan-glx closed 6 years ago

jan-glx commented 6 years ago

Default list c('expression', 'character', 'ast') for output parameter of TeX adjusted such that it matches the internal .parseTeX . Removed missing() check for required argument asR`'s default error message for missing arguments is more comprehensible. Added matchArgs() call for the output parameter of .parseTex for some useful argument checking.

jan-glx commented 6 years ago

\\} wasn't parsed correctly. fixed that as well. Could split up PR if you want. Thanks for thanks package!

stefano-meschiari commented 6 years ago

Hi Jan, thank you for the PR. I will be reviewing this today.