| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/html-deps.R |
| 3 |
\name{createWebDependency} |
| 4 |
\alias{createWebDependency} |
| 5 |
\title{Create a web dependency} |
| 6 |
\usage{ |
| 7 |
createWebDependency(dependency, scrubFile = TRUE) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{dependency}{A single HTML dependency object, created using |
| 11 |
\code{\link[htmltools:htmlDependency]{htmltools::htmlDependency()}}. If the \code{src} value is named, |
| 12 |
then \code{href} and/or \code{file} names must be present.} |
| 13 |
|
| 14 |
\item{scrubFile}{If TRUE (the default), remove \code{src$file} for the |
| 15 |
dependency. This prevents the local file path from being sent to the client |
| 16 |
when dynamic web dependencies are used. If FALSE, don't remove |
| 17 |
\code{src$file}. Setting it to FALSE should be needed only in very unusual |
| 18 |
cases.} |
| 19 |
} |
| 20 |
\value{ |
| 21 |
A single HTML dependency object that has an \code{href}-named element |
| 22 |
in its \code{src}. |
| 23 |
} |
| 24 |
\description{ |
| 25 |
Ensure that a file-based HTML dependency (from the htmltools package) can be |
| 26 |
served over Shiny's HTTP server. This function works by using |
| 27 |
\code{\link[=addResourcePath]{addResourcePath()}} to map the HTML dependency's directory to a |
| 28 |
URL. |
| 29 |
} |