Set the maximum number of entries kept in the LaTeX layout cache
Source:R/cache.R
latex_cache_limit.RdThe cache stores parsed layout information for recently rendered LaTeX expressions, keyed by the expression and relevant rendering parameters (font, size, macros, etc.). This speeds up repeated rendering of the same expressions, especially in loops or interactive sessions. The default limit is 512 entries, which should be sufficient for most use cases. When the limit is exceeded, the least recently used entries are automatically evicted.
Value
latex_cache_limit: Invisibly returns the previous limit.latex_cache_clear: Invisibly returnsNULL.latex_cache_info: A list with elementssize(entries currently stored),max_size,hits, andmisses.
Examples
# \donttest{
latex_cache_limit(256)
grid.latex("e^{i\\pi} + 1 = 0")
latex_cache_info()
#> $size
#> [1] 8
#>
#> $max_size
#> [1] 256
#>
#> $hits
#> [1] 0
#>
#> $misses
#> [1] 8
#>
latex_cache_clear()
# }