-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathbundle_resources.Rd
63 lines (53 loc) · 1.96 KB
/
bundle_resources.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bundle_resources.R
\name{bundle_resources}
\alias{bundle_resources}
\title{Automatically serve golem external resources}
\usage{
bundle_resources(
path,
app_title,
name = "golem_resources",
version = "0.0.1",
meta = NULL,
head = NULL,
attachment = NULL,
package = NULL,
all_files = TRUE,
app_builder = "golem",
with_sparkles = FALSE
)
}
\arguments{
\item{path}{The path to the folder where the external files are located.}
\item{app_title}{The title of the app, to be used as an application title.}
\item{name}{Library name}
\item{version}{Library version}
\item{meta}{Named list of meta tags to insert into document head}
\item{head}{Arbitrary lines of HTML to insert into the document head}
\item{attachment}{Attachment(s) to include within the document head. See
Details.}
\item{package}{An R package name to indicate where to find the \code{src}
directory when \code{src} is a relative path (see
\code{\link[htmltools:resolveDependencies]{resolveDependencies()}}).}
\item{all_files}{Whether all files under the \code{src} directory are
dependency files. If \code{FALSE}, only the files specified in
\code{script}, \code{stylesheet}, and \code{attachment} are treated as
dependency files.}
\item{app_builder}{The name of the app builder to add as a meta tag.
Turn to NULL if you don't want this meta tag to be included.}
\item{with_sparkles}{C'est quand que tu vas mettre des paillettes dans ma vie Kevin?}
}
\value{
an htmlDependency
}
\description{
This function is a wrapper around \code{htmltools::htmlDependency} that
automatically bundles the CSS and JavaScript files in \code{inst/app/www}
and which are created by \code{golem::add_css_file()} , \code{golem::add_js_file()}
and \code{golem::add_js_handler()}.
}
\details{
This function also preload \code{\link[=activate_js]{activate_js()}} which allows to
use preconfigured JavaScript functions via \code{\link[=invoke_js]{invoke_js()}}.
}