Debian Codegraph @

man/sass_cache_context_dir.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/sass_cache.R
3 \name{sass_cache_context_dir}
4 \alias{sass_cache_context_dir}
5 \title{Return the cache directory for the current context.}
6 \usage{
7 sass_cache_context_dir()
8 }
9 \description{
10 Return the cache directory for the current context.
11 }
12 \details{
13 In most cases, this function returns the user's cache directory, by calling
14 \code{tools::R_user_dir("sass", which = "cache")} (for R 4.0 and above) or
15 \code{rappdirs::user_cache_dir("R-sass")} (for older versions of R).
16
17 If this function is called from a Shiny application, it will also look for a
18 subdirectory named \verb{app_cache/}. If it exists, it will use a directory named
19 \verb{app_cache/sass/} to store the cache.
20
21 When running a Shiny application in a typical R session, it will not create
22 the \verb{app_cache/} subdirectory, but it will use it if present. This scopes the
23 cache to the application.
24
25 With Shiny applications hosted on Shiny Server and Connect, it \emph{will} create
26 a \verb{app_cache/sass/} subdirectory, so that the cache is scoped to the
27 application and will not interfere with another application's cache.
28 }
29 \keyword{internal}