mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
@@ -177,7 +177,7 @@ utils::globalVariables(".GenericCallEnv", add = TRUE)
|
|||||||
#' cache by putting this at the top of your app.R, server.R, or global.R:
|
#' cache by putting this at the top of your app.R, server.R, or global.R:
|
||||||
#'
|
#'
|
||||||
#' ```
|
#' ```
|
||||||
#' shinyOptions(cache = cachem::cache_disk(file.path(dirname(tempdir()), "myapp-cache"))
|
#' shinyOptions(cache = cachem::cache_disk(file.path(dirname(tempdir()), "myapp-cache")))
|
||||||
#' ```
|
#' ```
|
||||||
#'
|
#'
|
||||||
#' This will create a subdirectory in your system temp directory named
|
#' This will create a subdirectory in your system temp directory named
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ If you want to use a cache that is shared across multiple R processes, you
|
|||||||
can use a \code{\link[cachem:cache_disk]{cachem::cache_disk()}}. You can create a application-level shared
|
can use a \code{\link[cachem:cache_disk]{cachem::cache_disk()}}. You can create a application-level shared
|
||||||
cache by putting this at the top of your app.R, server.R, or global.R:
|
cache by putting this at the top of your app.R, server.R, or global.R:
|
||||||
|
|
||||||
\if{html}{\out{<div class="sourceCode">}}\preformatted{shinyOptions(cache = cachem::cache_disk(file.path(dirname(tempdir()), "myapp-cache"))
|
\if{html}{\out{<div class="sourceCode">}}\preformatted{shinyOptions(cache = cachem::cache_disk(file.path(dirname(tempdir()), "myapp-cache")))
|
||||||
}\if{html}{\out{</div>}}
|
}\if{html}{\out{</div>}}
|
||||||
|
|
||||||
This will create a subdirectory in your system temp directory named
|
This will create a subdirectory in your system temp directory named
|
||||||
|
|||||||
Reference in New Issue
Block a user