mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Don't send local package path to client when using htmlwidgets (#1756)
* Don't send local package path to client when using htmlwidgets. Fixes #1755 * Add scrubFile option
This commit is contained in:
@@ -4,12 +4,18 @@
|
||||
\alias{createWebDependency}
|
||||
\title{Create a web dependency}
|
||||
\usage{
|
||||
createWebDependency(dependency)
|
||||
createWebDependency(dependency, scrubFile = TRUE)
|
||||
}
|
||||
\arguments{
|
||||
\item{dependency}{A single HTML dependency object, created using
|
||||
\code{\link[htmltools]{htmlDependency}}. If the \code{src} value is named, then
|
||||
\code{href} and/or \code{file} names must be present.}
|
||||
\code{\link[htmltools]{htmlDependency}}. If the \code{src} value is named,
|
||||
then \code{href} and/or \code{file} names must be present.}
|
||||
|
||||
\item{scrubFile}{If TRUE (the default), remove \code{src$file} for the
|
||||
dependency. This prevents the local file path from being sent to the client
|
||||
when dynamic web dependencies are used. If FALSE, don't remove
|
||||
\code{src$file}. Setting it to FALSE should be needed only in very unusual
|
||||
cases.}
|
||||
}
|
||||
\value{
|
||||
A single HTML dependency object that has an \code{href}-named element
|
||||
|
||||
Reference in New Issue
Block a user