Learn R Programming

htmltools (version 0.5.9)

Tools for HTML

Description

Tools for HTML generation and output.

Copy Link

Version

Install

install.packages('htmltools')

Monthly Downloads

1,151,443

Version

0.5.9

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Carson Sievert

Last Published

December 4th, 2025

Functions in htmltools (0.5.9)

print.shiny.tag

Print method for HTML/tags
include

Include Content From a File
renderTags

Render tags into HTML
singleton

Include content only once
singleton_tools

Singleton manipulation functions
htmlDependencies

HTML dependency metadata
htmlDependency

Define an HTML dependency
tagFunction

Tag function
tagAppendChild

Modify tag contents
parseCssColors

Parse CSS color strings
plotTag

Capture a plot as a self-contained <img> tag
subtractDependencies

Subtract dependencies
suppressDependencies

Suppress web dependencies
tagQuery

Query and modify HTML tags
tagList

Create a list of tags
tagAddRenderHook

Modify a tag prior to rendering
tagAppendAttributes

Append tag attributes
renderDependencies

Create HTML for dependencies
withTags

Evaluate an expression using tags
save_html

Save an HTML object to a file
validateCssUnit

Validate proper CSS formatting of a unit
urlEncodePath

Encode a URL path