| cache_dir | R Documentation |
Returns the path where shinyelectron stores downloaded runtimes
(R, Python, Node.js) and other cached assets. By default, the
directory is created if it doesn't already exist. Pass
create = FALSE to query the path without side effects.
cache_dir(create = TRUE)
create |
Logical. Whether to create the directory if it doesn't exist. Default is TRUE. |
Character string. Absolute path to the cache directory,
typically ~/.cache/shinyelectron/assets on Linux,
~/Library/Caches/shinyelectron/assets on macOS, or
\%LOCALAPPDATA\%/shinyelectron/shinyelectron/Cache/assets on Windows.
Cached runtimes are organized by type, platform, architecture, and version:
assets/ |-- r/ | |-- win/x64/4.5.3/ | |-- mac/arm64/4.5.3/ |-- python/ | |-- win/x64/3.14.6/ | |-- mac/arm64/3.14.6/ |-- nodejs/ | |-- v22.11.0/darwin-arm64/ | |-- v22.11.0/win-x64/
Use cache_info() to see what's actually installed with disk usage.
cache_info() to see what's cached, cache_clear() to
remove cached assets, cache_remove() to remove a specific version.
# Query the cache path without creating it
cache_dir(create = FALSE)
# Get or create the cache directory (writes to the user cache dir)
if (interactive()) {
cache_dir()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.