| foundry_cache_clear | R Documentation |
Delete cached embeddings written by step_foundry_embed() with
cache = "disk".
foundry_cache_clear(cache_dir = NULL)
cache_dir |
Character. Cache directory. Defaults to the session's
temporary embedding cache. Supply the same explicit directory used by
|
Invisibly, the number of cache files removed.
local({
cache_dir <- tempfile("foundryR-cache-")
dir.create(cache_dir)
on.exit(unlink(cache_dir, recursive = TRUE))
saveRDS(c(1, 0, 0), file.path(cache_dir, "example.rds"))
foundry_cache_clear(cache_dir)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.