This has very limited capabilities and is intended mainly to convert parameter names in mathematical expression strings to associated TeX symbols so they look good when tikz is in use.

texify(x, dollars = TRUE, force = dev_is_tikz())

Arguments

x

character string to be interpreted

dollars

if TRUE then surround output string in $ signs

force

if TRUE then convert to TeX even if dev_is_tikz returns FALSE

Examples

texify("R0 = beta/gamma")
#> [1] "R0 = beta/gamma"
texify("R0 = beta/gamma", dollars=FALSE, force=TRUE)
#> [1] "{\\mathcal R}_0 = \\beta/\\gamma"