Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Automatically serve golem external resources

Source:R/bundle_resources.R
bundle_resources.Rd

This function is a wrapper aroundhtmltools::htmlDependency thatautomatically bundles the CSS and JavaScript files ininst/app/wwwand which are created bygolem::add_css_file() ,golem::add_js_file()andgolem::add_js_handler().

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,  activate_js=TRUE)

Arguments

path

The path to the folder where the external files are located.

app_title

The title of the app, to be used as an application title.

name

Library name

version

Library version

meta

Named list of meta tags to insert into document head

head

Arbitrary lines of HTML to insert into the document head

attachment

Attachment(s) to include within the document head. SeeDetails.

package

An R package name to indicate where to find thesrcdirectory whensrc is a relative path (seeresolveDependencies()).

all_files

Whether all files under thesrc directory aredependency files. IfFALSE, only the files specified inscript,stylesheet, andattachment are treated asdependency files.

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.

with_sparkles

C'est quand que tu vas mettre des paillettes dans ma vie Kevin?

activate_js

Boolean to enable or disable the injection of JavaScript via activate_js().

Value

an htmlDependency

Details

This function also preloadactivate_js() which allows touse preconfigured JavaScript functions viainvoke_js().


[8]ページ先頭

©2009-2025 Movatter.jp