staticPath | R Documentation |
The staticPath
function creates a staticPath
object. Note that
if any of the arguments (other than path
) are NULL
, then that
means that for this particular static path, it should inherit the behavior
from the staticPathOptions set for the application as a whole.
staticPath(
path,
indexhtml = NULL,
fallthrough = NULL,
html_charset = NULL,
headers = NULL,
validation = NULL
)
excludeStaticPath()
path |
The local path. |
indexhtml |
If an index.html file is present, should it be served up when the client requests the static path or any subdirectory? |
fallthrough |
With the default value, |
html_charset |
When HTML files are served, the value that will be
provided for |
headers |
Additional headers and values that will be included in the response. |
validation |
An optional validation pattern. Presently, the only type of
validation supported is an exact string match of a header. For example, if
|
The excludeStaticPath
function tells the application to ignore a
particular path for static serving. This is useful when you want to include a
path for static serving (like "/"
) but then exclude a subdirectory of
it (like "/dynamic"
) so that the subdirectory will always be passed to
the R code for handling requests. excludeStaticPath
can be used not
only for directories; it can also exclude specific files.
staticPathOptions
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.