Recently drawn expressions are cached, so drawing the same one again is
fast. latex_cache_limit() sets how many are kept (512 by default),
latex_cache_clear() empties the cache, and latex_cache_info()
reports on it.
Value
latex_cache_limit() returns the previous limit and
latex_cache_clear() returns NULL, both invisibly.
latex_cache_info() returns a list with size, max_size, hits
and misses.
Examples
# \donttest{
latex_cache_limit(256)
grid.latex("$e^{i\\pi} + 1 = 0$")
latex_cache_info()
#> $size
#> [1] 18
#>
#> $max_size
#> [1] 256
#>
#> $hits
#> [1] 0
#>
#> $misses
#> [1] 18
#>
latex_cache_clear()
# }