Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

renderDependencies

Create HTML for dependencies


Description

Create the appropriate HTML markup for including dependencies in an HTML document.

Usage

renderDependencies(
  dependencies,
  srcType = c("href", "file"),
  encodeFunc = urlEncodePath,
  hrefFilter = identity
)

Arguments

dependencies

A list of htmlDependency objects.

srcType

The type of src paths to use; valid values are file or href.

encodeFunc

The function to use to encode the path part of a URL. The default should generally be used.

hrefFilter

A function used to transform the final, encoded URLs of script and stylsheet files. The default should generally be used.

Value

An HTML object suitable for inclusion in the head of an HTML document.


htmltools

Tools for HTML

v0.5.1.1
GPL (>= 2)
Authors
Joe Cheng [aut], Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), Winston Chang [aut], Yihui Xie [aut], Jeff Allen [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.