font_cache_set: Control the directory used for font caching

View source: R/cache.R

font_cache_setR Documentation

Control the directory used for font caching

Description

The default directory used for font caching is system dependent; and thus, not very portable from machine to machine. Use this function to move thematic's cache to a new path. This is primarily useful for making font cache relative to a shiny app directory, so that, when the app is deployed, the cache deploys with it.

Usage

font_cache_set(path, cleanup = FALSE)

Arguments

path

a filepath for the new cachine directory.

cleanup

whether or not to remove font files from the previously used caching directory (after copying to the new location).

Value

Returns the previously used caching directory.

See Also

thematic_on(), font_spec()

Examples

## Not run: 
  font_cache_set("my_app")
  shiny::runApp("my_app")

## End(Not run)

thematic documentation built on Nov. 4, 2023, 9:07 a.m.